Created
August 15, 2011 16:47
-
-
Save felclef/1147170 to your computer and use it in GitHub Desktop.
Ajudando o menino Elland
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
SELECT | |
jb.* | |
FROM | |
jobs jb | |
INNER JOIN jobs_skills jbs | |
ON jbs.job_id = jb.id | |
INNER JOIN skills skj | |
ON skj.id = jbs.skill_id | |
LEFT JOIN ( | |
candidates cn | |
INNER JOIN candidates_skills cns | |
ON cns.candidate_id = cn.id | |
INNER JOIN skills skc | |
ON skc.id = cns.skill_id | |
) | |
ON skc.id = skj.id |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment