Ambiguous Groups

I have been writing some reports in sql and kept running into confusion about how the group by clause works. The majority of my distress had to do with the interplay between columns in the group by and the select . Let's see what the 1986 SQL standard 1 has to say about it. Query Specification Syntax Rules § If R is a grouped table, then each <column specification> in each <value expression> shall…