glenelkins Posted July 16, 2008 Share Posted July 16, 2008 Hi Im having a little trouble grasping joins. I can do the basic joins such as: SELECT t1.`field`, t2.`field` FROM `table1` t1, `table2` t2 WHERE t1.`id` = t2.`id` But what i need to do is the following: select 3 items from table 1 and 3 fields from table 2 and 1 field from table 1. They need to be selected by matchin an id from table 1 and 2, and a field from table 2 with table 1 does this make sense? Link to comment https://forums.phpfreaks.com/topic/115009-joins/ Share on other sites More sharing options...
revraz Posted July 16, 2008 Share Posted July 16, 2008 Provide your table structures for all 3. Link to comment https://forums.phpfreaks.com/topic/115009-joins/#findComment-591732 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.