Jump to content

Advice needed on mysql relationships / design


jcstanley

Recommended Posts

Hi

 

I have a mysql database which is used to run a club website, but I am not quite sure how to set up some relationships.

 

I have a table called ' Members' containing all the members names etc.

 

The club has a number of committees and each member can belong to more than one committee.

 

Therefore I have created another table called 'Committees' listing all the different committee names.

 

Thats where I get stuck.  How do I associate the members with the committees.  What I intend to do is have a webpage for each commitee displaying all of the members whithin that committee.

 

Hope this is making sense.  If you need more info please just ask.

 

Many thanks

i suppose u wud b ving a memberID in ur 'Members' table and committeeID in ur 'Committee' table.

 

Have a join table like 'committee_members' that has 2 columns-memberID  & committeeID  .so this table wud store the mapping information.

 

hope tis helps..

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.