01Chapter 1: Why duplicate rows appear in query resultsThis chapter assumes you can write a basic SELECT statement with FROM and WHERE, sort results with ORDER BY, and describe a table as rows and columns. Knowing how a JOIN combines two tables helps, because joins are a common source of repeated rows.1 min read
02Chapter 2: How DISTINCT treats NULL valuesThis chapter assumes you can write a basic SELECT ... FROM ... WHERE query, sort results with ORDER BY, and understand that a NULL means "no value recorded."1 min read
03Chapter 3: Building paged queriesThis chapter assumes you know SELECT, FROM, WHERE, and ORDER BY, and that you can write a query that returns rows. You will combine DISTINCT, ORDER BY, LIMIT, and OFFSET into page-by-page queries.1 min read