Selecting and filtering data

How the right rows and columns are chosen from a table.

1What it covers

How the right rows and columns are chosen from a table. The topic covers the selection of fields, conditions on values and dates, the handling of missing values, the removal of duplicates, the ordering of results, and the care needed so that a filter does not remove rows by accident. It starts with a business question and ends with a result set that holds the data needed and nothing else.

2Why it matters

A filter that removes rows by accident gives a total that does not match the ledger. Stating the question before writing the query keeps the result on target. Missing values behave differently from zero.

3The skill it belongs to

4Roles that use it

Updated 5 Nov 2026