28/30
Part 5 of 5 · The worked exampleLearn
These bugs all run, and each turns on a fact the question didn't spell out
Why do these bugs get past review? If you're asked which of these an assistant gets wrong most, don't invent a ranking you can't back up. Say what they share. Each one runs, returns numbers of the right shape, and turns on a fact the question didn't spell out: the grain, whether empty groups stay, what NULL means, the column types, where a range ends. Those are the facts to state when you prompt for SQL, and the ones to check when you review it.