Advertisement
Beginner SQL & Database Querying, Advanced SQL

What is a subquery?

Short answer

Query inside another query.

Save SQL & Database Querying mock interview
Advertisement
AModel answer
Query inside another query.
Example

Nested SELECT.

Real-world example
Window functions helped an analyst calculate running totals and rankings easily.
Likely follow-ups
  • What are window functions
  • What are CTEs
  • What are subqueries
Related topics