Order By
SELECT
select_list
FROM
table_name
ORDER BY
sort_expression1 [ASC | DESC],
sort_expression2 [ASC | DESC],
...;1. Using PostgreSQL ORDER BY clause to sort rows by one column

2. Using PostgreSQL ORDER BY clause to sort rows by one column in descending order

3. Using PostgreSQL ORDER BY clause to sort rows by multiple columns
4. Using PostgreSQL ORDER BY clause to sort rows by expressions

Last updated