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!

Link Data From Multiple Tables 1

Status
Not open for further replies.

TimTDP

Technical User
Feb 15, 2004
373
ZA
I am a newbie!

I have two tables.
How do I join them in an sql statement so that I can use the data in a report?
 

You need to know how the 2 tables relate, which field is the Key, (let's say it is SSN) so you can:
Code:
SELECT Table1.*, Table2.* 
FROM Table1, Table2
WHERE Table1.SSN = Table2.SSN
ORDER BY Table1.SomeField

Have fun.

---- Andy
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top