Re: [PHP-DB] Inner joining 3 tables

[email protected] ("Yves Sucaet")
Newsgroups php.db
Message-ID <007d01c8b2f3$5626a770$f6edd80c@rincewind>
select * from table1 inner join table2 on (table1.common1 = table2.common2) 
inner join table3 on (table2.common2 = table3.common3)

HTH,

Yves

----- Original Message ----- 
From: "Ron Piggott" <[email protected]>
To: "PHP DB" <[email protected]>
Sent: Saturday, May 10, 2008 4:33 PM
Subject: [PHP-DB] Inner joining 3 tables


> How do I inner join 3 tables together?  What would the syntax look like
> for this situation:
>
> Table 1 and table 2 have a common field;
> Table 2 and table 3 have a common field
>
> Ron
>
>
> -- 
> PHP Database Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.