I have a question on how to manupulate the generated sql from Framework Manager or Report Studio.
I have a table in Oracle 11g, call it DIM_DATE with columns SEASON and SEASONYEAR, both mandatory.
In a report the end user checks if SEASON||SEASONYEAR = 'Z10’
A part of the generated sql looks like:
AND CASE
WHEN (“Leavedate”.“SEASON” IS NULL)
OR (“Leavedate”.“SEASONYEAR” IS NULL)
THEN NULL
ELSE
(“Leavedate”.“SEASON” || “Leavedate”.“SEASONYEAR”)
END = ‘Z10’
Why is the check if the column is null.
I found a setting that Cognos uses DECODE instead of CASE, but I’m looking for a way to skip the check on IS NULL
Like this:
AND “Leavedate”.“SEASON” || “Leavedate”.“SEASONYEAR” = ‘Z10’
Any help would be appreciated.
Regards,
Emile