I am testing and trying to understand and tweak a large query written by someone else, would like some help with the meaning of an integer in the GROUP BY section. It has the following structure:
SELECT
column1,
column2,
SUM(column3),
SUM(column4),
FROM
table1 AS a
WHERE
column5 <> 3
GROUP BY
column1,
7,
column2;
What does that 7 do? I can't really find it anywhere in the output, or see what effect it has had.