How to Work with Subqueries in SQL
A subquery is a query nested inside another SQL query. The excerpt explains that the inner query can supply a derived value or table, or help filter rows in the outer query, and it introduces basic execution order plus non-correlated and correlated subqueries. It also notes that subqueries build on SQL basics like SELECT, FROM, WHERE, JOINs, CASE, and query order.