Here is how I did it in the database:
Table users pk: uid, name 1 Bob, 2 Louise, 3 Roger Table skills pk: sk_id, skill 1 karate, 2 piano, 3 knitting, 4 judo, 5 sailing, 6 fencing Table user_skill (relationship between user and skills) pk:usk_id, fk:uid, sk_id 1 1 1, 2 2 2, 3 2 3, 4 3 4, 5 3 5, 6 3 6,
I want to show "Roger has these skills: judo, basketweaving"
select name, skill from users, skills, user_skill where users.uid = user_skill.uid and users.uid = 3
Is this done correctly - as in terms of designing tables and queries (mysql)?
So, I am adding the following tables:
Table cities pk: city_id, city 1 London, 2 Manchester, 3 Liverpool, 4 Bolton, 5 Bradford,
But I am confused as to how to make a relationship. I continue to write and realize that it does not work and does not start again, so I obviously made a mistake.