Skip to content

Instantly share code, notes, and snippets.

View gist:1146821
SELECT
"jobs".*
FROM
"jobs"
INNER JOIN "skill_sets"
ON "skill_sets"."source_id" = "jobs"."id"
AND "skill_sets"."source_type" = 'Job'
INNER JOIN "skills"
ON "skills"."id" = "skill_sets"."skill_id"
View elland.skill.candidate.sql
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 (