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

Joining three tables 1

Status
Not open for further replies.

Evil8

MIS
Mar 3, 2006
313
US
Okay I am learning and I got two tables joined in a mysql database and working on a php page...

$query = 'SELECT * FROM `meeting` INNER JOIN `place` ON meeting.name = place.name'
. ' ORDER BY `state`,`city` ';

Now what is the correct syntax to join a 3rd table `information`? The meeting.info_id = information.id.

Any and all help is always appreciated. Thanks!
 
SELECT *
FROM meeting
INNER JOIN place ON meeting.name = place.name
INNER JOIN information ON meeting.info_id = information.id
ORDER BY state, city

Hope This Helps, PH.
FAQ219-2884
FAQ181-2886
 
Thanks! That was too easy. The initial source I tried was incorrect and only confussed me.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top