Don't even bother with the idiomatic formula; SQL has the syntax to actually do the correct thing