Solved

SQL Oracle in 1 data foundation

Posted on 2011-03-09
4
332 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

I hate sub reports and always consider them the last resort in any reporting solution.  The negative effect on performance and maintainability is just not worth the easy ride they give the report writer.  Nine times out of ten reporting requirements…
Hot fix for .Net Crystal Reports 10.2.3600.0 to fix problems with sub reports running on 64 bit operating systems ISSUE: Reports which contain subreports fail with error "Missing Parameter Value" DEPLOYMENT SERVER OS: Windows 2008 with 64 bi…
Although Jacob Bernoulli (1654-1705) has been credited as the creator of "Binomial Distribution Table", Gottfried Leibniz (1646-1716) did his dissertation on the subject in 1666; Leibniz you may recall is the co-inventor of "Calculus" and beat Isaac…
With Secure Portal Encryption, the recipient is sent a link to their email address directing them to the email laundry delivery page. From there, the recipient will be required to enter a user name and password to enter the page. Once the recipient …

726 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