Aug 10, 2006 #1 jimoblak Instructor Oct 23, 2001 3,620 US I'm stumped... What would be the SQL to order column 'a' as ASC but then column 'b' as DESC? Example: columns a:b 1:a 1:r 3:g 2:w 2:j 3:e 1:m Ordered output should be as: 1:r 1:m 1:a 2:w 2:j 3:g 3:e
I'm stumped... What would be the SQL to order column 'a' as ASC but then column 'b' as DESC? Example: columns a:b 1:a 1:r 3:g 2:w 2:j 3:e 1:m Ordered output should be as: 1:r 1:m 1:a 2:w 2:j 3:g 3:e
Aug 10, 2006 1 #2 TonyGroves Programmer Aug 13, 2003 2,389 IE [tt] SELECT * FROM tblname ORDER BY a ASC, b DESC [/tt] Upvote 0 Downvote
Aug 10, 2006 Thread starter #3 jimoblak Instructor Oct 23, 2001 3,620 US Hmmm... This is what I thought I had tried (even without the implied ASC which works as well). I probably did something stupid earlier in the select statement. Thanks Upvote 0 Downvote
Hmmm... This is what I thought I had tried (even without the implied ASC which works as well). I probably did something stupid earlier in the select statement. Thanks