Conceptual
Login

SQL Subquery

A subquery is a SELECT nested inside another statement, usable as a scalar value, a row filter (IN, EXISTS), or a derived table in FROM. It lets one query's result parameterize another within a single statement.

Questions this Concept answers

  • Why can rewriting a subquery as a join change a query's speed so much?