SELECT LST.HRS_LST_ID , JOB.SRCH_SCORE , JOB.HRS_JOB_OPENING_ID , %Substring(POST.POSTING_TITLE, 1, 30) FROM PS_HRS_LIST LST , PS_HRS_JO_POSTING POST , PS_HRS_LIST_JOB JOB , PS_HRS_SRCH_SAVED SAVED WHERE JOB.HRS_LST_ID = LST.HRS_LST_ID AND JOB.HRS_JOB_OPENING_ID <> 0 AND POST.HRS_JOB_OPENING_ID = JOB.HRS_JOB_OPENING_ID AND LST.HRS_LST_TYPE = 'SSJO' AND (LST.HRS_SAVE_UNTIL IS NULL OR LST.HRS_SAVE_UNTIL >=%CurrentDateIn) AND SAVED.SEARCH_NAME = %Substring(LST.HRS_SEARCH_NAME,1,20) AND ((SAVED.HRS_OWNER_ID = LST.HRS_OWNER_ID AND SAVED.HRS_SCH_ACCESS = 'V') OR SAVED.HRS_SCH_ACCESS = 'P') AND SAVED.HRS_SCH_TYPE = 'P'
|