I have the tables:
Candidates
CandidateLanguages
CandidateSkills
Each candidate may have more than 1 language and more than 1 skill
So for Candidate
"FRED", his records in CandidateLanguages
may be
FRED - ENGLISH
FRED - FRENCH
and his records in CandidateSkills
may be
FRED - RUNNING
FRED - JUMPING
and for Candidate
"JIM" his records in CandidateLanguages
may be
JIM - ENGLISH
and his records in CandidateSkills
may be
JIM - RUNNING
My query needs to select candidates that match multiple skills and languages.
So for example in English:
Select all of the candidates who speak ALL of the selected languages and have ALL of the selected skills...
Or put another way....
SELECT ALL candidates WHERE
(language = 'FRENCH' AND language is 'ENGLISH') AND
(skill = 'RUNNING' AND skill = 'JUMPING')
Of the two candidates above, this should only return "FRED"
I understand that the problem is with trying to select multiple records from the Language and Skills table and I think that joins may be required, but now I am lost...