COGNOiSe.com - The IBM Cognos Community

IBM Cognos 10 Platform => Cognos 10 BI => Framework Manager => Topic started by: gosoccer on 18 Sep 2014 01:04:36 PM

Title: Framework Manager 10.1.2 and Identifying the Right Row
Post by: gosoccer on 18 Sep 2014 01:04:36 PM
Friends,
I have a small issue but it is taking us a while to figure it out.
Same table is used.

TABLE

MSES#           TYPE       STATUS   COUNT
1111               H              YES        1

1111               Z              NO         0[/u]

                       
So, the Framework Manager is to work in a way that it'll show the following
MSES#
1111               H               NO         0


So, basically, the result listing is showing the first row but including what
is collected from the second table.


Any help you can provide, I greatly appreciate it.
:( ::)


Title: Re: Framework Manager 10.1.2 and Identifying the Right Row
Post by: Francis aka khayman on 18 Sep 2014 09:38:31 PM
sorry dude. you might need to explain it more clearly.

in any case FM do not behave like that. base on the information you provide, it will show the two rows of data from that table.
Title: Re: Framework Manager 10.1.2 and Identifying the Right Row
Post by: gosoccer on 19 Sep 2014 06:56:04 AM
Well,
I'm using SQL within the Subject Query. The following is doing the trick

Using 2 table aliases from a same table named TESTING to retrieve the data

select MSES#,TYPE,STATUS,COUNT
from TESTING A, TESTING B
where (A.MSES# = B.MSES#)

Now, I need to specify one of them as the outer join or inner join.
I know this is not a SQL Forum but you do know how to have the above
SQL using a inner/outer join, please let me know.

Thank you
Title: Re: Framework Manager 10.1.2 and Identifying the Right Row
Post by: Francis aka khayman on 21 Sep 2014 09:11:38 PM
a little bit clearer than the first post but still not quite.

anyway i would

1. create a Query subject in the database layer of the base table by either importing or using query.
2. create an alias (or two) from the same table, let's call them AliasA and AliasB
3. join AliasA to AliasB as needed.
4. create new Query subject taking what I need from the two alias table which I joined.

Title: Re: Framework Manager 10.1.2 and Identifying the Right Row
Post by: gosoccer on 22 Sep 2014 06:29:55 AM
Thx a lot for your time.
Your suggestion should do the trick. I'll try it.