Contact US

Log In

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!

*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

Pull active employee jobcode from dept unless

Pull active employee jobcode from dept unless

Pull active employee jobcode from dept unless

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

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

RE: Pull active employee jobcode from dept unless

Nevermind I figured it out =)

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Tek-Tips Forums free from inappropriate posts.
The Tek-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members! Already a Member? Login

Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close