Jump to content
We've recently updated our Privacy Statement, available here ×

Using order by case statement in Report query


sefas

Recommended Posts

I am trying to use the ORDER BY CASE sql statement in my report query to sort data in a specific order, but it does not like the syntax.

 

In oracle the syntax is e.g.

order by case when order_type = 12 then 1 when order_type = 10 then 2 else 3 end

Any idea what the correct syntax is to do this in the Report query?.

 

 

Link to comment
Share on other sites

  • Replies 0
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×
×
  • Create New...