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 Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

unrelated tables

Status
Not open for further replies.
Jul 21, 2001
102
US
I want to report on rows in several tables that have been updated within a specified date range. Except for each table having an update date, the tables are unrelated. How can I select address, job, and other tables that may have an ID in common but don't necessarily?
 
Use a Union Query.

This depends upon technical information, such as Crystal version, database and connectivity, etc., which you didn't to post.

An example would be if you had 3 tables with similar data elements to be extracted, but they couldn't be joined:

Create a report using Table1

Then select Database->Show SQL Qeury

Copy the SQL

Skip to a line after the SQL and type the word UNION

Paste in the SQL

Modify it to reflect the table2 names

Do the same for table 3

Now you'll get all 3 sets of data as one regardless of whether they can be linked.

-k
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top