BUILDS ON
TOPICS
#5
SELECT & Projection
Pick the columns a query returns, compute new ones with per-row expressions named by AS, and trace why the engine runs FROM before the SELECT list you wrote first.
12 min
#6
WHERE & Filters
Filter rows with AND, OR, IN, BETWEEN, and LIKE, predict why WHERE col = NULL returns zero rows, and reach for IS NULL to match the blank.
13 min
#7
ORDER BY, LIMIT, DISTINCT
Sort rows with single and multi-column ORDER BY, page a sorted result with LIMIT and OFFSET, and fold duplicate rows with DISTINCT, which counts two NULLs as equal.
11 min
#8
CASE, COALESCE, Casts
Reshape each row's values with CASE branches, fill blanks with COALESCE and flip a chosen value to NULL with NULLIF, then cast a value to the type an operator demands.
12 min