WHERE clause as a search conditionHAVING clause as a search conditionFROM clause as a table specificationSELECT clause as a column specificationWHERE clause
SELECT productName, listPrice
FROM products
WHERE listPrice > (
SELECT AVG(listPrice)
FROM products
);
ORDER BY listPrice DESC;
The value returned by the subquery 841.895
The result set
WHERE clause
SELECT productName, listPrice
FROM products
WHERE categoryID = (
SELECT categoryID
FROM categories
WHERE categoryName = 'Basses'
);
The result set
SELECT statement that’s coded within another SQL statement.IN clause. And a subquery that returns one or more columns can be introduced in place of a table in the FROM clause.