Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

CR XI - combine data from 2 databases

Status
Not open for further replies.

ZaneL

Programmer
Nov 16, 2005
2
LV
Is it possible to combine data from 2 Oracle 9i databases (with identical tables and fields, but with different data) into one report? I use CR XI. I would like to use UNION, but I cannot edit SQL ("Show SQL Query"). Any suggestion?

 
Go to database->database expert->and select "Add command". You can write the union statement there.

-LB
 
Another method is to have a subreport: the subreport can access a different database, though to do this at detail-line level would be very inefficient.

[yinyang] Madawc Williams (East Anglia, UK). Using Windows XP & Crystal 10 [yinyang]
 
Hi,
An even better method ( in most cases) would be to create a view in one of the instances that does the UNION ( using a database link) ..That way, the report only needs to connect to one instance...



[profile]

To Paraphrase:"The Help you get is proportional to the Help you give.."
 
LB: But there is a one big problem. As I understand it is not possible to write UNION statement for 2 databases (with different instances … in fact two different servers) using "Add command”. I tried already: ? Do you know how to write UNION statement in that case?

Madawc: For some reports it is good solution, but not for all. If I will not find other better solution, I will to use subreports.

Turkbear : Databases? Ok. …it is a good idea. I will try it. I tried to create the two similar universes with the different connections and then linked them. At first moment everything looked good, but then I fond that the data in the tables are not different anymore. ? The linked universes connection was changed.


 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top