COGNOiSe.com - The IBM Cognos Community

IBM Cognos 8 Platform => COGNOS 8 => Framework Manager => Topic started by: consultantcareer on 25 Sep 2008 03:05:24 PM

Title: union with minmized sql
Post by: consultantcareer on 25 Sep 2008 03:05:24 PM
Hello Cognos Gurus,

I am trying to Union columns Ao,Bo,Co,Do and Eo from oracle data set and As,Bs,Cs,Ds,Es from sql server dataset.

I want to create a union of these two.Au,Bu,Cu,Du,Eu.
Requirement for that Union is that it should create  union for just the fields it was asked for.

I mean if you access just the Au then result set should do the union of just Ao and As.
That's what I expected that minimzed sql would do.

instead it first creates union set with all fields..Au,Bu,Cu,Du and Eu and then selects Au after that.
My expectation was that would happen if I chose sql setting to be 'As View' .

Intersting thing is it would not let me change sql setting any more for query set. It says its minimized..but doesn't act like one.

Oracle is 10g and sql server is 2000.

Any inputs/insights would be appreciated
Title: Re: union with minmized sql
Post by: blom0344 on 26 Sep 2008 03:48:23 AM
Minimized SQL refers to the set of tables and joins involved in the SQL generated. It does not seem to effect that Cognos uses an inline view to retrieve all possible fields and then just selects the asked one in the outer select.
In our experience this setting is not well implemented (even to the extent that Cognos introduces unneccesary joins even with minimized SQL)