Jump to content

joins


glenelkins

Recommended Posts

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

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.