1.2 - Filtering with WHERE
Enroll to start learning
You’ve not yet enrolled in this course. Please enroll for free to listen to audio lessons, classroom podcasts and take practice test.
Practice Questions
Test your understanding with targeted questions
What does the WHERE clause do in SQL?
💡 Hint: Think about how it modifies the results of a query.
Write a SQL command to get all orders where order_status is 'Pending'.
💡 Hint: Remember the format of a basic SQL query.
4 more questions available
Interactive Quizzes
Quick quizzes to reinforce your learning
What does the WHERE clause do in a SQL query?
💡 Hint: Think about what filtering means in data retrieval.
True or False: The WHERE clause can only use the '=' operator.
💡 Hint: Consider the different ways we can compare values.
1 more question available
Challenge Problems
Push your limits with advanced challenges
Create a SQL query that returns orders placed in 2023 that are either 'Pending' or 'Shipped' and have a total over $500.
💡 Hint: 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?
💡 Hint: Combine date checks with a count condition.
Get performance evaluation
Reference links
Supplementary resources to enhance your learning experience.