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

joining 3 tables

Status
Not open for further replies.

ginaburg

Technical User
Jul 14, 2004
62
US
Is it possible to join 3 tables.
I created a SQL view that joins 2 tables using full join but is there a way to join a third one to that view?

Thanks
Gina
 
Yes, there is a way. Without sample code, I can only give you a vague example:

Code:
SELECT *
  FROM table1 t1 JOIN table2 t2
    ON t1.col1 = t2.col1 JOIN table3 t3
    ON t1.col2 = t3.col2

*cLFlaVA
----------------------------
Lois: "Peter, you're drunk!"
Peter: "I'm not drunk, I'm just exhausted from stayin' up all night drinking!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top