Question
MySQL design help
I have a situation where the relationship between to tables
(team,skills) is
many to many
members of the team have many different skills
skills can be performed by many different team members
not all skills can be performed by each team member
On individual php web page I will display a skill and the team members with
that skill
I was thinking to build two tables:
skills
skill_id (int)(primary_key)
skill_name (varchar)
skill_description (varchar)
team
team_id (int)(primary_key)
member_name (varchar)
member_bio (varchar)
skill_1 (boolean)
skill_2 (boolean)
skill_3 (boolean)
skill_4 (boolean)
skill_5 (boolean)
skill_6 (boolean)
skill_7 (boolean)
skill_8 (boolean)
skill_9 (boolean)
skill_10 (boolean)
Is there a better way to do this?
On the same php page is it possible to display data from two tables that do
not share a foreign_key?
Jeff
many to many
members of the team have many different skills
skills can be performed by many different team members
not all skills can be performed by each team member
On individual php web page I will display a skill and the team members with
that skill
I was thinking to build two tables:
skills
skill_id (int)(primary_key)
skill_name (varchar)
skill_description (varchar)
team
team_id (int)(primary_key)
member_name (varchar)
member_bio (varchar)
skill_1 (boolean)
skill_2 (boolean)
skill_3 (boolean)
skill_4 (boolean)
skill_5 (boolean)
skill_6 (boolean)
skill_7 (boolean)
skill_8 (boolean)
skill_9 (boolean)
skill_10 (boolean)
Is there a better way to do this?
On the same php page is it possible to display data from two tables that do
not share a foreign_key?
Jeff