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

Need query to pull records from unrelated tables

Status
Not open for further replies.

aggieval

Programmer
May 23, 2002
25
0
0
US
I am trying to pull data from two tables that are relatively unrelated (I will be grouping by date). Basically I want to append data from these two tables without running a make Table/Append query. Help Please.

Thanks,
Tracy
 
Hi Tracy
Your info is a bit short.
It seems that you have a problem, but you can relate on the dates in the tabels, and you do not want to make an make table/append Q. But where is the problem?
Let us know so that we can help
 
Code:
select stuff from onetable
union all
select morestuff from theothertable
order by thedatecolumn

note that you have to select the same number of columns from each table, and all columns selected have to be datatype compatible

rudy
 
Thanks r937. That is exactly what I needed. Thank You, Thank You. Thank You.

Tracy
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top