Search the courses, subjects, tracks, games and features, or jump straight to a page.
5 cards from this section. Quick, good the night before a test.
Define a subquery and provide an example.
Think about how filtering works within a query.
What does a CTE do?
What do we call a temporary result set in SQL?
What is the purpose of a subquery in SQL?
Consider how queries can be layered.
True or False: CTEs are only used in nested queries.
Think about the functionality of CTEs beyond nesting.
Create a SQL query using a subquery that finds the names of employees who have the highest salary within each department.
You may need to consider aggregation and grouping functions.
Describe how you would use CTEs to find the total sales in each region using sales data.
Remember the structure of a CTE and how to use the WITH clause.
6 more questions in this section. Enroll free to practise them all.
Enroll free