SELECT DISTINCT O.OPRCLASS , A.PERSON_ID ,B.BUSINESS_UNIT , B.DESCR FROM PS_SPB_SERVICE_COD A , PS_BUS_UNIT_TBL_FS B , PS_SEC_BU_CLS O WHERE O.BUSINESS_UNIT = B.BUSINESS_UNIT AND (B.BUSINESS_UNIT IN ( SELECT C.BUSINESS_UNIT FROM PS_SPF_REQ_LINE C , PS_SPF_REQ_LINE_JD D WHERE C.RECRUITER = A.PERSON_ID AND C.BUSINESS_UNIT = D.BUSINESS_UNIT AND C.SP_REQ_ID = D.SP_REQ_ID AND C.LINE_NBR = D.LINE_NBR AND D.VMS_SUPPLIER_ID = ' ' AND C.TEAM_ID = ' ') OR B.BUSINESS_UNIT IN( SELECT W.BUSINESS_UNIT FROM PS_SPF_WORDERREC W , PS_SPF_WORDERREC_1 W1 WHERE W.RECRUITER = A.PERSON_ID AND W.BUSINESS_UNIT = W1.BUSINESS_UNIT AND W.WORK_ORDER_ID = W1.WORK_ORDER_ID AND W1.VMS_SUPPLIER_ID = ' ' AND W.TEAM_ID = ' '))
|