COGNOiSe.com - The IBM Cognos Community

IBM Cognos 8 Platform => COGNOS 8 => Report Studio => Topic started by: johny.cbi on 15 Feb 2008 12:10:09 PM

Title: set the number of rows returned in a query
Post by: johny.cbi on 15 Feb 2008 12:10:09 PM
How to set the number of rows returned in a query?

I want to limit only the first 100 rows
need it at the query level  not in the report
if i try setting "Maximum Rows Retrieved" under the query properties,
it gives an error if I try to get more records back then the maximum
I just basically want to use a "LIMIT" in SQL on the query
at report level we can set no of rows per page
Title: Re: set the number of rows returned in a query
Post by: DSR on 16 Feb 2008 04:35:28 AM
If you want to set no of rows at query level...

You can ristrict by FM.... But it is applicable for all reports available in project under that particular package...........


Just think if you want to apply for all reports then this can solve your problem..

Bye..........
Title: Re: set the number of rows returned in a query
Post by: Suraj on 19 Feb 2008 09:33:01 AM
Try using rank function.