COGNOiSe.com - The IBM Cognos Community

IBM Cognos 8 Platform => COGNOS 8 => Report Studio => Topic started by: ari_meta on 18 Mar 2010 09:33:32 PM

Title: Having Clause in Report Studio
Post by: ari_meta on 18 Mar 2010 09:33:32 PM
HI


In my SQL Query, I have having clause. When I put it in report studio filter. It appears as a where clause in Native SQL . Even, I have tried to put both  in summary or in detail filters .
Any help to resolve this will be highly appreciated.

Thanks


Gary 
Title: Re: Having Clause in Report Studio
Post by: addpremkumar on 19 Mar 2010 02:58:57 AM
Can you please give me an example for what exactly you are looking for. So I can help you.

In Report Studio we dont have an option called "Having", by using an option "for" we will calculate the totals or counts.

Ex: Count( [Emp] for [Dept] )
Title: Re: Having Clause in Report Studio
Post by: blom0344 on 19 Mar 2010 03:14:58 AM
Cognos allows you to define post-aggregation filters where the server can filter AFTER the SQL is executed. These filters do not show up in native SQL.
Use straightly injected SQL is not the way to go. Use Cognos modelling and benefit from the tool like you would want to  !!