Skip to Main Content

SQL & PL/SQL

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

How to 'Sort' or 'Order By' with the order in the where clause

user8533109Jan 4 2011 — edited Jan 4 2011
All,

This could be very basic but I am stuck at a point where I am writing a query having a where clause in it and I need to sort the results in accordance to the where clause.

Here is the query:

select id, status
from consumer
where id IN ('00013716517',
'00001135180',
'00000774955',
'00000364580',
'00004883803',
'00013275296')


How do I make the result appear in order of the 'id' that i have written in the where clause of the query.

Thank you so much in advance.
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Feb 1 2011
Added on Jan 4 2011
4 comments
416 views