gabrielinux Posted September 2, 2008 Share Posted September 2, 2008 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 TicketNumberFROM AWHERE A.TicketStatus = 'Open'; My second query, and the one for the report I actually need, would look like this:SELECT PONumber, PODate, POStatusFROM BWHERE B.TicketNumber IN (... results from the previous query... ); Any idea how I accomplis this?Thanks! Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now