I'm having a problem where I want a result set to come out in the order of the IN.
SELECT userid,username
FROM user
WHERE userid IN (3,2,4)
and regardless of the ORDER BY or GROUP BY that I do, for some reason the resultset will always be 2,3,4. I'd like to get it in the order that it appears in the IN clause. Is this at all possilbe? Thanks in advanced
SELECT userid,username
FROM user
WHERE userid IN (3,2,4)
and regardless of the ORDER BY or GROUP BY that I do, for some reason the resultset will always be 2,3,4. I'd like to get it in the order that it appears in the IN clause. Is this at all possilbe? Thanks in advanced