I have a number of departments. In each department I have a manager. What I am looking for is a report to list each of the employees in that department with the managers ID after each employee.
This is what I am trying
(SELECT ("B"."EMPLID")
FROM "PS_JOB" "B"
WHERE ( ("B"."EMPLID"="PS_JOB"."EMPLID")
AND ("B"."EMPL_RCD_NBR"="PS_JOB"."EMPL_RCD_NBR")
AND ("B"."DEPTID"="PS_JOB"."DEPTID")
AND ("B"."JOBCODE"="PS_JOB"."JOBCODE")
AND ("PS_JOB"."JOBCODE"='12104')
AND ("PS_JOB"."EMPL_STATUS"='A') )
)
but when I try this nothing displays. (It does have the correct number of records but nothing shows on the report)
This is what I am trying
(SELECT ("B"."EMPLID")
FROM "PS_JOB" "B"
WHERE ( ("B"."EMPLID"="PS_JOB"."EMPLID")
AND ("B"."EMPL_RCD_NBR"="PS_JOB"."EMPL_RCD_NBR")
AND ("B"."DEPTID"="PS_JOB"."DEPTID")
AND ("B"."JOBCODE"="PS_JOB"."JOBCODE")
AND ("PS_JOB"."JOBCODE"='12104')
AND ("PS_JOB"."EMPL_STATUS"='A') )
)
but when I try this nothing displays. (It does have the correct number of records but nothing shows on the report)