May 2019
Intermediate to advanced
542 pages
13h 37m
English
A SELECT statement can be embedded in another SQL statement by putting it in parentheses. This is called a subquery. Exactly where it can be embedded depends on what kind of data the query is expected to return:
Consider this query:
SELECT coffees.coffee_brand, coffees.coffee_nameFROM coffees JOIN ( SELECT * FROM roasts WHERE id > ( SELECT id FROM roasts WHERE description = 'Medium' ...
Read now
Unlock full access