Enrol to start learning
Reading is open to everyone. Enrolling is free, and it is what unlocks the audio lessons, practice tests and progress tracking.
5. Summary Table
This section
Practice test
12 questions on this section. Wrong answers show you what to read again.
Sign up to take itWhole chapter
Revision test
Mixed questions from across the chapter. Your answers get marked.
Sign up to take itQuick
Flashcard drill
3 cards from this lesson. Good the night before a test.
Try these first
- 1.
What SQL command would you use to select all columns from the 'products' table?
Hint
Remember, `*` means all columns.
- 2.
How would you filter orders that are pending?
Hint
Think about adding a WHERE clause.
- 3.
What SQL command retrieves data from a table?
- UPDATE
- SELECT
- DELETE
Hint
Think about the purpose of the command.
- 4.
True or False: The WHERE clause is used to filter results.
- True
- False
Hint
Recall what WHERE does in a query.
- 5.
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.
Hint
Combine COUNT with GROUP BY and HAVING.
- 6.
Construct a SQL statement to find product IDs and their associated sales, including those with zero sales using appropriate joins.
Hint
Use a LEFT JOIN to include all products.
Exercises
Total Questions
2
Estimated Time
4 min
Passing Score
70%
Instructions
- Read each question carefully
- You can use hints if you need help
- Complete all questions before submitting
4 more questions available
Enrol freeQuiz
Total Questions
2
Estimated Time
4 min
Passing Score
70%
Instructions
- Read each question carefully
- You can use hints if you need help
- Complete all questions before submitting
2 more questions available
Enrol freeChallenge Problems
Total Questions
2
Estimated Time
4 min
Passing Score
70%
Instructions
- Read each question carefully
- You can use hints if you need help
- Complete all questions before submitting