Search the courses, subjects, tracks, games and features, or jump straight to a page.
4 cards from this section. Quick, good the night before a test.
What is the purpose of a subquery in SQL?
Think about how one query can feed into another.
Can subqueries be used in the WHERE clause?
Consider how we restrict results based on another dataset.
What is a subquery?
Recall how one query can influence another.
Subqueries can be used in which SQL clauses?
Think of all the places we've mentioned using them.
Create a SQL query that retrieves the names of employees who earn more than the average salary of their specific department, using subqueries.
Think about how to correlate the subquery with the outer query logically.
Explain under what circumstances you would prefer using a JOIN over a subquery and provide an example.
Consider the relationships between tables and how to express them directly.
6 more questions in this section. Enroll free to practise them all.
Enroll free