Re:The Next 50 Years of Databases (2015)
by jimktrains2 on Monday November 11, 2019 @11:15PM
(#21511465)
Ah, you meant in the select, not the table. I guess I'm just much more in favour of being explicit, but I can understand the usefulness of what you said now that I fully understand it.
Whether you want this or not, ANSI SQL requires that you group by at least these.
You could group by more more fields, such as favorite_pet, though that would be somewhat odd since you are did not include it in the result set.