Connector Improvement: Greenhouse connector missing job_post_id in Application table
Completed
Hi there!
|
We are missing a vital column in our Greenhouse integration. |
-
Official comment
Hi Daniyar -
Thanks for submitting this feature request. In the greenhouse schema we have the JOB_APPLICATION table which acts as a bridge table between APPLICATION and JOB. Typically an APPLICATION can only be associated with 1 JOB, however when the APPLICATION is for a prospect it can have 0 or many JOBS which is why we created the bridge table as part of the schema. You can do a query across the bridge table as shown below to get all of the the APPLICATION_ID's with the JOB_ID.
Thanks,
Erin
SELECT
A.ID as APPLICATON_ID
,J.ID AS JOP_POST_ID
FROM APPLICATION A
LEFT JOIN JOB_APPLICATION JA
ON A.ID = JA.APPLICATION_ID
LEFT JOIN JOB J
ON JA.JOB_ID = J.ID -
Hi Erin,
thank you for your reply.
Do I understand it correctly that the suggested script will help to establish application_id to job_id relationship?
It's not exactly what we are looking for.
We need to establish a connection between application_id and job_post_id.
In you script you useJ.ID AS JOP_POST_ID
while J is a JOB table, so J.ID is JOB_ID, not JOB_POST_ID.
So, wrong table.
P.S.
I know there is a relationship between JOB and JOB_POST tables, but it is a 1:N relationship and therefore doesn't help getting 1:1 relationship between application_id and job_post_id.
Here is the prove:SELECT J.id, count(*)
FROM JOB J
left join JOB_POST JP
ON J.ID = JP.JOB_ID
group by 1
order by 2 desc; -
Hi Daniyar -
My apologies, i was indeed looking at the wrong field. Yes, that is a missing foreign key relationship that we should have in our ERD.
I'll add this as a Feature Improvement task in our backlog and work to prioritize it in an upcoming sprint.
Best,
Erin
Please sign in to leave a comment.
Comments
3 comments