sample SQL
select "DMND_FRCST"."DMND_CTGRY" "Demand_Category"
from "SPM_BI_SL"."DMND_FRCST_V" "DMND_FRCST"
where "DMND_FRCST"."DMND_CTGRY" = cast(? as char(20))
group by "DMND_FRCST"."DMND_CTGRY"
due to this performance is getting effected for the reports
The above SQL shows Cast in RS where as in Data Base the query runs with out Cast Function
cognos is generating a cast function by default