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

Union Query for just one field 1

Status
Not open for further replies.

molly

Technical User
Joined
Jul 17, 2000
Messages
219
Location
US
Is it possible to make a Union Query in the SQL qry mode to obtain 1 common field that exists in 2 queries ?
I have a RawID in my Usage qry and a RawID in my Purchases Qry. I would like to make a new Qry to combine and make unique the RawID. So far I tried:


Select * from [UsageQry].[OldRawID]
UNION Select * from [PurchasesQry].[OldRawID];

If this works, My next plan was to use this Union Qry like a bridge or junction to the UsageQry and PurchasesQry so that I see their data based on a RawID.

Ideas? thanks so much.

 
Would you mind posting your table structures? example:
tblUsage
UsageID
etc.

tblPurchases
PurcharseID
etc.

Other tables.
 
Duane - your method worked perfectly.
I will donate again shortly.
thanks MOlly
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top