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

link / merge tables

Status
Not open for further replies.

vantuch

Technical User
May 4, 2005
3
US
I'm a newbie -- I have 2 tables:

TABLE1 has the majority of the data, several fields.

TABLE2 has just two fields, one of which corresponds to a field in TABLE1, 2nd field is an empty field in TABLE1 but needs the data from TABLE2

all records in TABLE1 do not exist in TABLE2
all records in TABLE2 do exist in TABLE1

-- is there some way to do this?
 
A Starting point:
SELECT * FROM TABLE1 LEFT JOIN TABLE2 ON TABLE1.SomeField = TABLE2.Field1

Hope This Helps, PH.
Want to get great answers to your Tek-Tips questions? Have a look at FAQ219-2884 or FAQ222-2244
 
I'm not at all sure what to do with the information you've given me.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top