Skip to main content
SQL Output Prediction Easy +10 XP

ORDER BY Default

In what order does this return results?

SQLRead-only
SELECT name FROM employees
ORDER BY name;

What is the output?

Show answer and explanation

Answer: Ascending A-Z

ORDER BY defaults to ASC (ascending). Use ORDER BY name DESC for reverse order.

Hint: What is the default sort direction?

What this challenge tests

Output Prediction in SQL: order-by, basics.

Related challenges