Jump to content
We've recently updated our Privacy Statement, available here ×

Passing a list of results to another report (or sub-report)


gabrielinux

Recommended Posts

Hi all,

     I need to run a report from databae A where a PONumber field appears in database B.  Since the databases resided on different servers and are not linked together, I thought maybe I could do this with a sub-report?  Any idea how?

My first query would retrieve a whole bunch of order numbers:

SELECT DISTINCT TicketNumber

FROM A

WHERE A.TicketStatus = 'Open';

 

My second query, and the one for the report I actually need, would look like this:

SELECT PONumber, PODate, POStatus

FROM B

WHERE B.TicketNumber IN (... results from the previous query... );

 

Any idea how I accomplis this?

Thanks!

Link to comment
Share on other sites

  • Replies 0
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

Popular Days

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×
×
  • Create New...