The answer I couldn't find anywhere, what is a term for columns listed in GROUP BY clause? And in opposite, what is a name for columns to which aggregate functions applied?
Asked
Active
Viewed 35 times
1
-
in group by you can have either keys (columns) or aggregate functions so it means group by expression meaning it can involve both – Himanshu Nov 16 '18 at 14:18
-
1Just for reference, there doesn't seem to be any more specific term used in common [relational algebra](https://en.wikipedia.org/wiki/Relational_algebra#Aggregation) either. So, they're "columns" :-) – Damien_The_Unbeliever Nov 16 '18 at 14:21
-
Words matter. +1 for that. – Eric Brandt Nov 16 '18 at 14:27
-
::= GROUP BY [
] – jarlh Nov 16 '18 at 14:29
1 Answers
2
I would refer to them as "group by keys" or aggregation keys.
I find that documentation in different databases is not consistent, so there might be some flexibility. "group by element" or "group by expression" both convey the idea, unambiguously.
There is not a special name for the arguments of aggregation functions. These can be any expressions, including "group by keys".

Gordon Linoff
- 1,242,037
- 58
- 646
- 786