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.
1.1. Select Statement
This section
Practice test
11 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
4 cards from this lesson. Good the night before a test.
Try these first
- 1.
Write a SQL query to select all columns from the 'employees' table.
Hint
Use SELECT and FROM clauses.
- 2.
How would you filter to find orders with 'Shipped' status?
Hint
Think about the WHERE clause.
- 3.
What SQL clause would you use to filter results?
- SELECT
- WHERE
- ORDER BY
- LIMIT
Hint
Think about the purpose of each clause.
- 4.
True or False: The ORDER BY clause can sort results in either ascending or descending order.
- True
- False
Hint
Consider how you can use ORDER BY in SQL.
- 5.
You need to analyze user behavior by collecting login data for the past month. Write a SQL query that retrieves user IDs and counts their logins for that month, limited to users with more than 5 logins.
Hint
Focus on filtering the date and counting occurrences.
- 6.
You are tasked with finding the top 5 customers who have spent the most over the last year. Create the SQL query to retrieve each customer's ID and total spent amount.
Hint
Remember to sum the amounts and sort top to bottom.
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
1 more question 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