ascending order in sql
snippet in sql

sql order by

user5583

 //this_for_descending_order.. 
 SELECT * FROM TableName ORDER BY columnName DESC;
 // this_for_ascending_order..
SELECT * FROM TableName ORDER BY columnName ASC;

order by sql

user1053

//this_for_descending_order.. 
 SELECT * FROM TableName ORDER BY columnName DESC;
 // this_for_ascending_order..
SELECT * FROM TableName ORDER BY columnName ASC;

sql reverse order of results

user7244

SELECT q.* 
    FROM (SELECT TOP 3 * 
              FROM table 
              ORDER BY id DESC) q
    ORDER BY q.id ASC

order by sql

user4927

The SQL ORDER BY Keyword:
--------------------------------
The ORDER BY keyword is used to sort the result-set in ascending or descending order.

The ORDER BY keyword sorts the records in ascending order by default. To sort the records in descending order, use the DESC keyword.

ORDER BY Syntax:
--------------------------------
SELECT column1, column2, ...

FROM table_name

ORDER BY column1, column2, ... ASC|DESC; 

ascending order in sql

user6517

SELECT *
FROM employees
ORDER BY employees.employee_id DESC ;
·        Ascending ( ASC)
·        Descending ( DESC)

order by in sql

user3620

ORDER BY: is for sorting result
either in descending or ascending order.