how to sort only one column in sql code example
Example 1: sql reverse order of results
SELECT q.*
FROM (SELECT TOP 3 *
FROM table
ORDER BY id DESC) q
ORDER BY q.id ASC
Example 2: sort order on two columns sql
Sort by multiple column : ORDER BY column1 DESC, column2