Search the courses, subjects, tracks, games and features, or jump straight to a page.
3 cards from this section. Quick, good the night before a test.
What does ORDER BY price ASC do?
Think about how you would organize prices in a list.
Write an SQL query to select all products sorted alphabetically by name.
Sort using the product name.
What does the SQL command ORDER BY do?
Consider what we do to organize lists.
True or False: The ASC keyword sorts data in descending order.
Think about what 'ascending' means.
Write a SQL query that sorts a list of employees first by department alphabetically and then by their hire date in descending order.
Consider the order in which you want to arrange employees in a report.
Formulate a query that selects all products including their sales amount and sorts them by sales amount descending, but only for the available status.
Combine filtering with your sorting for clarity.
5 more questions in this section. Enroll free to practise them all.
Enroll free