I have five tables in my database, users, jobs, qualifications, job_qualifications and users_qualification
I need to select all the employees who can do a specific job. It would be useful if an operator such as ALL IN existed, so, for example, the query would be
SELECT user_id
FROM users_qualification
WHERE qualification_id ALL IN
(
SELECT qualification_id
FROM job_qualifications
WHERE jobs_id = 1
)
source
share