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 SQL command would you use to select all columns from the 'products' table?
Remember, `*` means all columns.
How would you filter orders that are pending?
Think about adding a WHERE clause.
What SQL command retrieves data from a table?
Think about the purpose of the command.
True or False: The WHERE clause is used to filter results.
Recall what WHERE does in a query.
Write a query that retrieves the total number of orders and groups them by customer ID, then filter so only customers with more than 2 orders are shown.
Combine COUNT with GROUP BY and HAVING.
Construct a SQL statement to find product IDs and their associated sales, including those with zero sales using appropriate joins.
Use a LEFT JOIN to include all products.
6 more questions in this section. Enroll free to practise them all.
Enroll free