Hi
I have the following SQL:
SELECT FK_ADRESSE_UUID
FROM ADU.UTADU_VERTRAG
WHERE STATUS<>4 AND PLZ='8600'
GROUP BY FK_ADRESSE_UUID HAVING (sum(BESTANDES_PRAEMIE)>10)
When I issue this statement, then I get a SQL0101N error (statement too complex or long)
If I put instead of the value 10 the value 100, it works. The lower the value is, the bigger the STMTHEAP has to be.
Example:
To let the following SQL work (instead of 100 the value 20)
SELECT FK_ADRESSE_UUID
FROM ADU.UTADU_VERTRAG
WHERE STATUS<>4 AND PLZ='8600'
GROUP BY FK_ADRESSE_UUID HAVING (sum(BESTANDES_PRAEMIE)>20)
I have to put the STMTHEAP from 2048 to 20480, but I can'z put the STMTHEAP to such a high value !
Is there another possibility ?
Marc