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 the WHERE clause do in SQL?
Think about how it modifies the results of a query.
Write a SQL command to get all orders where order_status is 'Pending'.
Remember the format of a basic SQL query.
What does the WHERE clause do in a SQL query?
Think about what filtering means in data retrieval.
True or False: The WHERE clause can only use the '=' operator.
Consider the different ways we can compare values.
Create a SQL query that returns orders placed in 2023 that are either 'Pending' or 'Shipped' and have a total over $500.
Combine multiple conditions and consider using BETWEEN for date ranges.
How would you retrieve a list of users who registered last year and have logged in more than 5 times?
Combine date checks with a count condition.
5 more questions in this section. Enroll free to practise them all.
Enroll free