I have a query wherein I use "In" clause in it. Now I wish to have the result set in same order as my In clause. For example -
select Id,Name from mytable where id in (3,6,7,1)
Result Set :
|Id | Name |
------------
| 3 | ABS |
| 6 | NVK |
| 7 | USD |
| 1 | KSK |
I do not want to use any temp table. Is it possible to achieve the goal in one query?