On 09/09/2013 02:45 PM, Lennart Jonsson wrote:
[...]
>
> It doesn't like the parameter marker in the group by clause. I assume
> this is because there is no guarantee that parameter 1 and 2 are the
> same.
To elaborate a bit, I believe that DB2 implements the strict behaviour
for the GROUP BY clause described in SQL92. SQL99 loosens this
restriction by allowing us to leave out columns from the GROUP BY clause
that is functionally dependent of those specified. Not sure if any other
DBMS implements this semantic, but I'm pretty sure DB2 does not.
/Lennart
[...]