sql order by - SQL multiple column ordering -


i trying sort multiple columns in sql, , in different directions. column1 sorted descending, , column2 ascending.

how can this?

order column1 desc, column2 

this sorts column1 (descending) first, , column2 (ascending, default) whenever column1 fields 2 rows equal.


Comments

Popular posts from this blog

ruby - When to use an ORM (Sequel, Datamapper, AR, etc.) vs. pure SQL for querying -

php - PHPDoc: @return void necessary? -

c++ - Convert big endian to little endian when reading from a binary file -