Oracle SQL

Sorting by Multiple Columns

Sorting by Multiple Columns
Written by shohal

Sorting by Multiple Columns

For example, to sort person by their first names in ascending order and their last names in descending order, you use the following statement:

SELECT
	first_name,
	last_name
FROM
	person
ORDER BY
	first_name,
	last_name DESC;

About the author

shohal

Leave a Comment