COGNOiSe.com - The IBM Cognos Community

IBM Cognos 8 Platform => COGNOS 8 => Report Studio => Topic started by: bloggerman on 17 Jul 2012 03:32:40 PM

Title: Distinct in SQL
Post by: bloggerman on 17 Jul 2012 03:32:40 PM
Do we always get a distinct in our query against non aggregated columns? Is there a way to not have it

I created a query with just country in it. It had a "select disticnt country....."
Title: Re: Distinct in SQL
Post by: tjohnson3050 on 17 Jul 2012 10:06:38 PM
There is a property on the query called 'Auto Group and Sum'.  It is set to yes by default.  When this is set to yes, a query of one data item that has aggregation property set to none, will do a distinct.  Turn the property off, and you will not get a distinct.