KB
Diamond Member
Three Tables
Person
------------
PersonID
Name
PersonSkills
------------
PersonSkillID
PersonFK -------> Person.PersonID
SkillFK ------> Skills.SkillID
Skills
------------
SkillID
SkillName
I am trying to query for all people who have SkillID 1, 4 and 5. They must have all 3 skills, not just one of the Skills. So WHERE SKILLID IN (1,4,5) isn't going to work.
WHERE SKILLID = 1 AND SKILLID = 4 AND SKILLID = 5 doesn't work either.
Person
------------
PersonID
Name
PersonSkills
------------
PersonSkillID
PersonFK -------> Person.PersonID
SkillFK ------> Skills.SkillID
Skills
------------
SkillID
SkillName
I am trying to query for all people who have SkillID 1, 4 and 5. They must have all 3 skills, not just one of the Skills. So WHERE SKILLID IN (1,4,5) isn't going to work.
WHERE SKILLID = 1 AND SKILLID = 4 AND SKILLID = 5 doesn't work either.