Skip to Main Content

SQL & PL/SQL

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

PeopleSoft Multiple Jobs (Primary vs Secondary)

Mike DecuirApr 25 2011 — edited Apr 25 2011
I'm trying to find users in our database who have 2 or more active primary jobs.

I have a SQL Statement which shows me employees with no primary job.

SELECT DISTINCT A.EMPLID
FROM PS_JOB A
Where not exists (SELECT 'X' FROM PS_JOB X
WHERE X.JOB_INDICATOR = 'P'
AND A.EMPLID = X.EMPLID)
How would I write a sql statement showing me employees in the database
who have 2 or more active primary jobs?

Mike
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on May 23 2011
Added on Apr 25 2011
8 comments
1,646 views