alex375
11-01-2007, 12:08 PM
Hello All,
I need a query which delivers results in the order I have in the element sequence after "IN".
SELECT aid, cid, vid FROM table WHERE aid IN (5,7,3)
I want to see the resuts of the query submitted in the same order, it means the first row should be with aid 5, the second with aid 7 and the third with 3.
Without "ORDER BY" I get the results in sequence 3, 5, 7.
Please help
I need a query which delivers results in the order I have in the element sequence after "IN".
SELECT aid, cid, vid FROM table WHERE aid IN (5,7,3)
I want to see the resuts of the query submitted in the same order, it means the first row should be with aid 5, the second with aid 7 and the third with 3.
Without "ORDER BY" I get the results in sequence 3, 5, 7.
Please help