Order By:
The ORDER BY keyword is used to sort the result-set by a specified column. The ORDER BY keyword sorts the records in ascending order by default. If you want to sort the records in a descending order, you can use the DESC keyword.
Syntax:
SELECT
column_name(s)
FROM
table_name
ORDER BY
column_name(s) ASC|DESC
The ORDER BY keyword is used to sort the result-set by a specified column. The ORDER BY keyword sorts the records in ascending order by default. If you want to sort the records in a descending order, you can use the DESC keyword.
Syntax:
SELECT
column_name(s)
FROM
table_name
ORDER BY
column_name(s) ASC|DESC
0 comments:
Post a Comment