COUNT DISTINCT Step by Step
A compact COUNT DISTINCT book for readers who need exact finite aggregate behavior: input rows, the chosen value column, NULL cells skipped, duplicate values folded into one bucket, the count result, grouped COUNT DISTINCT, all-NULL group count zero, and guarded expected facts.