Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Query help: ordering both ASC and DESC 1

Status
Not open for further replies.

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
 
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
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top