Not ashamed to admit that I never really thought about the distinct operator 'being redundant' as its essentially just a group by.
replies(3):
I wish SQL had a strict mode syntax that forces you to use something like `select one` (like LINQ’s Single()) or `select many` to catch these kinds of bugs.