Jump to content

Mysql and many-to-many search...


jtakkinen_82

Recommended Posts

Hey, I have this database where I need a many-to-many relationship between 2 tables (project and teams). So the tables are as follows:

 

---------------

teams            |           

---------------

teamID         

name             

 

---------------

projects        |

---------------

projectID

name

 

---------------

projects_teams|

---------------

teamID         

projectID       

---------------

 

So what I need is a mysql query to find all teams that are related to specific project using the intermediate table... how can this be done?

 

Link to comment
https://forums.phpfreaks.com/topic/94059-mysql-and-many-to-many-search/
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.