The SQL standard knows an interesting feature where you can project any functional dependencies of a primary (or unique) key that is listed in the
GROUP BYclause without having to add that functional dependency to theGROUP BYclause explicitly.
I was unaware that this functionality existed (in some database platforms), and I’m not positive that I like it.
Comments closed