COGNOiSe.com - The IBM Cognos Community

IBM Cognos 10 Platform => Cognos 10 BI => Report Studio => Topic started by: raghuram on 22 Apr 2013 02:22:07 PM

Title: Search and Select from two tables and pass the result to a third table
Post by: raghuram on 22 Apr 2013 02:22:07 PM
I need to look for an account number (entered by the user) in Table 1. If not found, look in Table 2. If not found there also, Error Message.

If found, pass that account number to Table 3 to populate more prompts on the prompt page. How do I do this?
Title: Re: Search and Select from two tables and pass the result to a third table
Post by: raghuram on 22 Apr 2013 02:32:47 PM
More info on Tables 1 and 2. The Count(*) is as follows:

1.  Table 1: 31228
2.  Table 2: 51844
3.  Full Join of Tables 1 and 2 on Account_Number: 65672
Title: Re: Search and Select from two tables and pass the result to a third table
Post by: blom0344 on 23 Apr 2013 04:20:32 AM
Write a stored procedure? You are basically describing data manipulation,not reporting. Passing data from table to table is not a BI purpose. You need to handle this within the database
Title: Re: Search and Select from two tables and pass the result to a third table
Post by: raghuram on 24 Apr 2013 07:19:37 PM
Thank you for the tip. I don't have access to the database and need to jump through couple of hoops to get the stored procedure(s) done.

I did get the issue resolved with the Search and Select Prompt though.

I will keep the idea of Stored Procedure in mind and try it sometime down the road based on the access to the database.