Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Pull active employee jobcode from dept unless

Status
Not open for further replies.

ttrsnoob

Technical User
Sep 8, 2008
13
0
0
US
I am trying to pull a report that will show all DEPTIDs between '000100' and '009000'. I need the report to then pull the active employee's EMPLID with JOBCODE 12104 (there will only be 1 employee with that jobcode) If there are only terminated employees with jobcode 12104 I still want the deptid to show but have no employee show

example
DEPTID 100 EMPLID 12345 JOBCODE 12104
DEPTID 101 EMPLID 23456 JOBCODE 12104
DEPTID 102 EMPLID JOBCODE 12104

right now it will pull 2 lines for each DEPTID when there is an active and terminated employee and only 1 line when there is only terminated employees in the DEPTID
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top