Solved

SQL Oracle in 1 data foundation

Posted on 2011-03-09
4
327 Views
Last Modified: 2012-05-11
We have a MS SQL 2005 database that is fed information from an Oracle database. The similar information is customer, invoice number and date. I see how to add both databases to a data foundation. What i need to do is match the information in 1 database to the other based on invoice number. I know i could do this in a subreport, but i want to know how to do this using 2 different data sources in 1 data foundation.
i would like to come into the report with the following columns
invoice1 | invoice date 1 | Invoice amt 1 | invoice2 | invoice date 2 | Invoice amt 2 |

with invoice 1 and 2 being equal unless there is a missing invoice 1 or 2 then i want to see that

Thanks in advance

Ken
0
Comment
Question by:Gershowit
  • 2
4 Comments
 
LVL 100

Expert Comment

by:mlmcc
ID: 35087492
What does this have to do with Crystal Reports?

mlmcc
0
 

Author Comment

by:Gershowit
ID: 35087530
I need to write a crystal report that will show both sets of information on 1 line. To do this I want to create a business view to aquire the information for the report.
0
 
LVL 26

Accepted Solution

by:
Kurt Reinhardt earned 500 total points
ID: 35088807
Personally, I wouldn't take this approach, because it's inherently inefficient.  I would write a SQL View in either Oracle or SQL Server 2005 and refer to the external database within the SQL itself.  This would ensure that all of the data was pulled into a single recordset, which could then be used as the data source for the report.  If you really wanted to, you could use the SQL you would otherwise write in a view as the basis for your business view.

To access Oracle data inside a T-sql query you would need to link your Oracle server.  Here's just one example of how to do this: http://www.techrepublic.com/blog/datacenter/how-do-i-query-foreign-data-using-sql-servers-linked-servers/133

~Kurt
0
 

Author Closing Comment

by:Gershowit
ID: 35112946
Figuring out how to create the input for this report was the most fun I have in a long time. Thanks for your help rhinok, you put me on the right path. Works very well and is quite fast.
0

Featured Post

Do You Know the 4 Main Threat Actor Types?

Do you know the main threat actor types? Most attackers fall into one of four categories, each with their own favored tactics, techniques, and procedures.

Join & Write a Comment

Crystal Reports: 5 Tests for Top Performance It is complete, your masterpiece report.  Not only does it meet your customer’s expectations, it blows them out the water, all they want is beautifully summarised and displayed in a myriad of ways. …
There have always been a lot of questions related to when Crystal Reports evaluates report components (such as formulas, summaries, cross-tabs, charts, to name a few examples). Crystal Reports uses a two-pass reporting process to provide greater …
Access reports are powerful and flexible. Learn how to create a query and then a grouped report using the wizard. Modify the report design after the wizard is done to make it look better. There will be another video to explain how to put the final p…
Here's a very brief overview of the methods PRTG Network Monitor (https://www.paessler.com/prtg) offers for monitoring bandwidth, to help you decide which methods you´d like to investigate in more detail.  The methods are covered in more detail in o…

708 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

13 Experts available now in Live!

Get 1:1 Help Now