Friday 15 January 2016

ORDER BY clause

In this article, we will see the  ORDER BY clause Sql.

The SQL ORDER BY clause is used to sort the data in ascending or descending order, based on one or more columns. Some database sorts query results in ascending order by default.


Syntax

SELECT column_name, column_name
FROM table_name
ORDER BY column_name ASC|DESC

Let's see the program for this.




































Thanks.

No comments:

Post a Comment