Handling Missing Values
COALESCE returns the first value that is not null. COALESCE(copies, 0) gives the number where there is one and 0 where there is not.
That is often what you want for display and often wrong for analysis. Treating unknown as zero pulls every average down, and the result looks entirely reasonable. Decide deliberately, exactly as in the cleaning module of APIs & Datasets, and say which you chose.
Mark this lesson complete
Signed in, your progress follows you to every device.