I'm using BO and DB2 for my reports. If I'm using a CASE..WHEN..END statement and aggregate function in the SELECT clause, BO will automatically generate an SQL with
SELECT .... CASE..WHEN..END,...COUNT(*)....
FROM ....
WHERE ....
GROUP BY ... CASE..WHEN..END
which fails because DB2 does not allow any function in the GROUP BY clause. Is there any way I can make BO to generate a correct SQL for DB2?
SELECT .... CASE..WHEN..END,...COUNT(*)....
FROM ....
WHERE ....
GROUP BY ... CASE..WHEN..END
which fails because DB2 does not allow any function in the GROUP BY clause. Is there any way I can make BO to generate a correct SQL for DB2?