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

Union Query Help

Status
Not open for further replies.

Caryisms

Technical User
Oct 17, 2001
132
US
How do I write the code in-order to see a particular value in one field?

ie. Select Number Field where number is "1",
 
Thank you John.

How do I join records in a union query that will make two records with an ID in common one record? Thanks!
 
A union query is for joining the results of two select queries together, whether related or not.
The syntax is:

select field1, field2
from table1
where field3 = 1
union
select field4, field5
from table2
where field6 = 2


John
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top