COGNOiSe.com - The IBM Cognos Community

IBM Cognos 10 Platform => Cognos 10 BI => Report Studio => Topic started by: Kid_in_Cognos on 15 May 2017 05:27:13 AM

Title: Joining Sp and a Table
Post by: Kid_in_Cognos on 15 May 2017 05:27:13 AM
Hi,

i want to join a SP with the table. But there is no column between them.
Please find the attachment for the data items. I need all the data items in UP_CONF_UC_ATPEmailCustomers and one data item in DimClientSym.
is it possible to join these two with out any common column?

Thanks.
Title: Re: Joining Sp and a Table
Post by: New_Guy on 15 May 2017 07:20:20 AM
Hi,
You will need a common column for any kind of join. Do you have any other table that has a related column with the stored proc?
Good luck
New guy
Title: Re: Joining Sp and a Table
Post by: Lynn on 15 May 2017 07:43:57 AM
Can you describe how the join should work without a common column?
Title: Re: Joining Sp and a Table
Post by: Kid_in_Cognos on 15 May 2017 07:52:30 AM
is there is a possibility to create a dummy data item in both the table  and join both?. i thought of like this . But i know i am wrong

Thanks
Title: Re: Joining Sp and a Table
Post by: Lynn on 15 May 2017 08:31:43 AM
Quote from: Kid_in_Cognos on 15 May 2017 07:52:30 AM
is there is a possibility to create a dummy data item in both the table  and join both?. i thought of like this . But i know i am wrong

Thanks

How do the rows returned by the SP relate to the rows returned from the table? Are you trying to join every row in one with every row in the other? A dummy item can be created for that purpose but looking at the structure of both it doesn't look like that would be a sensible thing to do.
Title: Re: Joining Sp and a Table
Post by: Kid_in_Cognos on 15 May 2017 08:48:48 AM
Hi Lynn / New_Guy,

Thank you much for your replies. I have joined the SP and the table by using  another common table and write the query in sql and given the sql generated report output to the customer. He seems to be happy.

Thanks again for your time.

Kind Regards