I used only simple SQL statements in the past, but suddenly found that I needed to do something more complex and went out of my depth. Any help would be appreciated.
I have tables:
CandidatesCandidateLanguagesCandidateSkills
Each candidate can have more than one language and more than 1 skill
So, for Candidate "FRED" its entries in CandidateLanguages may be
FRED - ENGLISH FRED - FRENCH
and his entries in CandidateSkills may be
FRED - RUNNING FRED - JUMPING
and for Candidate "JIM" its entries in CandidateLanguages may be
JIM - ENGLISH
and his entries in CandidateSkills may be
JIM - RUNNING
In my request, it is necessary to select candidates that correspond to several skills and languages.
So, for example, in English:
Select all candidates who speak ALL selected languages and have ALL selected skills ...
Or in 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 trying to select multiple entries from the Language and Skills table, and I think it might take a join, but now I'm lost .......
Thank you for your input - much appreciated