Loading topic
SELECT, FROM, WHERE, and ORDER BY syntax. You should also know that NULL represents a missing or unknown value. NULL is not the same as zero, an empty string, or the value FALSE.2 min readSELECT, WHERE, ORDER BY, tables, joins, and NULL. This chapter focuses on how the three common forms of COUNT answer different questions.1 min readSELECT, FROM, WHERE, and ORDER BY syntax. You should also understand tables, rows, columns, and NULL. This chapter uses an orders table with order_id, customer_id, status, and amount columns.2 min readSELECT, FROM, WHERE, and ORDER BY syntax. You should also understand that NULL represents a missing value and that a table contains rows and columns.2 min readSELECT, WHERE, and ORDER BY syntax, understand tables and NULL, and have basic INNER JOIN and LEFT JOIN experience. This chapter focuses on one rule: after GROUP BY changes many input rows into one row per group, every selected value must make sense for that group2 min readSELECT, FROM, WHERE, and ORDER BY syntax. You should also understand tables, rows, columns, NULL, and basic joins.2 min readSELECT, FROM, WHERE, GROUP BY, and ORDER BY syntax. You should also understand that NULL represents a missing value. This chapter uses an orders table with customer_id, amount, and status columns.2 min readSELECT, FROM, WHERE, ORDER BY, NULL, and basic GROUP BY. You will use those features to create groups from calculated values instead of grouping only by stored columns.2 min readSELECT, WHERE, GROUP BY, HAVING, CASE, and basic NULL behavior. This chapter uses an orders table with customer_id, status, and amount.2 min readSELECT, WHERE, GROUP BY, INNER JOIN, and LEFT JOIN. This chapter focuses on one common aggregation error: joining tables first and then summing values from a table whose rows are repeated by the join.2 min readSELECT, WHERE, GROUP BY, HAVING, and basic joins. It also assumes that orders has customer_id, status, and amount columns.2 min readSELECT, FROM, WHERE, ORDER BY, GROUP BY, and aggregate functions. You should also understand NULL and basic joins. This chapter compares grouped aggregates with window functions.2 min readSELECT, WHERE, ORDER BY, basic joins, NULL, aggregate functions, and GROUP BY. This chapter focuses on checking grouped queries instead of trusting plausible-looking numbers.2 min read