You are on page 1of 3

23/01/2011 PS-Query listing supervisor hierarchy (…

Featured Webcast: Windows 7 Deployment - "An Insider's Guide" Register Today

My Home Topics People Companies Jobs White Paper Library Search Toolbox.com

Home Blogs Groups Wiki Communities White Papers Q&A and Docs Directory Events Subscriptions

Toolbox for IT Topics PeopleSoft Groups


Register for free to view all 10 answers on a
PeopleSoft HR ASK A QUESTION single page.
Already a member? Sign in
PS-Query listing supervisor hierarchy
Reply from Raul | posted Apr 8, 2010 | Replies (10) 0

If you use Position MGT Reports to Position is the supervisor Position Related
Please check the below Query PS-Query listing supervisor hierarchy
It returns all employees in EMPL_STATUS IN ('A','L','P','S','W') & also Reporting to Outer Join
Position is vacant that is why i used union Help with Outter Join SQL Stmt

SELECT A.EMPLID, B.NAME, A.EMPL_RCD, A.POSITION_NBR, R.DESCR,


A.FULL_PART_TIME, A.EMPL_STATUS, A.PAYGROUP, A.DEPTID, J.DESCR,
A.LOCATION, L.DESCR, O.XLATLONGNAME, A.REPORTS_TO, E.DESCR, C.EMPLID, Group Leaders
D.NAME
Helpful Poster
FROM PS_JOB A, PS_EMPLMT_SRCH_QRY A1, PS_NAMES B,
Leslie C
PS_PERS_SRCH_QRY B1, PS_POSN_INCUMBENT C, PS_POSTN_SRCH_QRY C1, Systems Analyst
PS_PERSONAL_DATA D, PS_POSITION_DATA E, PS_POSTN_SRCH_QRY E1,
PS_DEPT_TBL J, PS_SET_CNTRL_REC J2, PS_LOCATION_TBL L, Top Contributor
PS_SET_CNTRL_REC L2, PS_HC_DEPT_TBL N, XLATTABLE_VW O, LearnPeopleSoft
PS_POSITION_DATA R, PS_POSTN_SRCH_QRY R1
WHERE J.DEPTID = A.DEPTID
Achievement Earner
AND J2.SETCNTRLVALUE = A.BUSINESS_UNIT
Ashish Bhatt
AND J2.RECNAME = 'DEPT_TBL'
AND J2.SETID = J.SETID
View All Leaders
AND L.LOCATION = A.LOCATION
AND L2.SETCNTRLVALUE = A.BUSINESS_UNIT
AND L2.RECNAME = 'LOCATION_TBL'
AND L2.SETID = L.SETID Toolbox.com for iPhone
AND A.EMPLID = A1.EMPLID Solve problems on the go. Learn More...
AND A.EMPL_RCD = A1.EMPL_RCD
AND A1.ROWSECCLASS = 'EDGVPNLS' Download Now
AND B.EMPLID = B1.EMPLID
AND B1.ROWSECCLASS = 'EDGVPNLS'
AND C.POSITION_NBR = C1.POSITION_NBR
AND C1.ROWSECCLASS = 'EDGVPNLS'
AND E.POSITION_NBR = E1.POSITION_NBR
AND E1.ROWSECCLASS = 'EDGVPNLS'
AND R.POSITION_NBR = R1.POSITION_NBR
AND R1.ROWSECCLASS = 'EDGVPNLS'
AND ( A.EFFDT =
(SELECT MAX(A_ED.EFFDT) FROM PS_JOB A_ED
WHERE A.EMPLID = A_ED.EMPLID
AND A.EMPL_RCD = A_ED.EMPL_RCD
AND A_ED.EFFDT <= SYSDATE)
AND A.EFFSEQ =
(SELECT MAX(A_ES.EFFSEQ) FROM PS_JOB A_ES
WHERE A.EMPLID = A_ES.EMPLID
AND A.EMPL_RCD = A_ES.EMPL_RCD
AND A.EFFDT = A_ES.EFFDT)
AND A.EMPL_STATUS IN ('A','L','P','S','W')
AND A.EMPLID = B.EMPLID
AND B.EFFDT =
(SELECT MAX(B_ED.EFFDT) FROM PS_NAMES B_ED
WHERE B.EMPLID = B_ED.EMPLID
AND G.NAME_TYPE = B_E

10 Replies Sign in or register for free to see all the answers on a single page

Trying to figure out how to have included on a query an...


Asked by Michelle Rancourt | Apr 8, 2010

Can you just join table to itself, but instead of joining...


Reply from Colby McAnarney | Apr 8, 2010

May be given a more clearer scenario of what you are trying...


Reply from Praveen Kumar | Apr 8, 2010

…ittoolbox.com/…/psquery-listing-sup… 1/3
23/01/2011 PS-Query listing supervisor hierarchy (…
I do this type of query quite often. If you are using...
Reply from Kathy Okerberg | Apr 8, 2010

If you use Position MGT Reports to... -- current message


Reply from Raul | Apr 8, 2010

New
HitoI Toolbox? Ask A
can create a query toQuestion Join supervisor...
list an employee's
Reply from Michelle Rancourt | Apr 9, 2010

Link JOB to itself via supervisor_id to emplid (obviously...


Reply from Todd Ekey | Apr 9, 2010

You can use Supervisor_Id from JOB. Join the employee's...


Reply from Mike MacIsaac | Apr 9, 2010

In summary: Table A - JOB or EMPLOYEES Table B - member


1
PERSON_NAME... vote
Reply from Diana Nye | Apr 9, 2010

Mrancourt, Can you provide the table that you are using...
Reply from Colby McAnarney | Apr 9, 2010

THANK YOU!!!!!!!!!!!!!!!!!!!!!! Ths is what I was looking...


Reply from Michelle Rancourt | Apr 9, 2010

Post your Response


Show formatting options

Your e-mail address SUBMIT

White Papers and Webcasts


Popular
Real-Time, On-Demand Information for Business Intelligence and Data Integration

Related
Key Strategies for IT Success in Today's Distribution Environment
Tiered Storage Takes Center Stage
Building Organizations to Leverage Collaborative Technologies: Transforming a Century of
Human Resource Assumptions and Practices

More White Papers

« Previous Thread | < Previous Message | Next Message > | Next Thread »

Suggested Links

NetApp® Data Storage


Only NetApp Guarantees Using 50% Less Storage. Start Saving Today!
www.netapp.com

Systems Management Software


Software Deployment, Patch Mgmt, Asset Mgmt, Remote Control & more. Starts@
$545
www.DesktopCentral.com

Financial Compliance Tool


Mobile Data Poses A Risk To Financial Compliance. Learn More.
MaaS360.com/Forrester-Report

Buy a Link Now

Toolbox for IT Topics on Toolbox for IT Toolbox.com

My Home Data Center Enterprise Architecture & EAI Networking & Infrastructure About
Topics Data Center Enterprise Architecture & EAI Hardware News
People Mobile & Wireless Privacy
Companies Development Information Management Networking Terms of Use
Jobs C Languages Business Intelligence Telephony Work at Toolbox.com
White Paper Library Java Database Advertise
Visual Basic Data Warehouse Operating Systems Contact us
Collaboration Tools Web Design & Development Knowledge Management Linux Provide Feedback
Discussion Groups Oracle UNIX
Blogs Windows Help Topics
Wiki Enterprise Applications Technical Support
CRM IT Management & Strategy
Follow Toolbox.com ERP Emerging Technology & Trends Security Other Communities
Toolbox for IT on Infor IT Management & Strategy Security

…ittoolbox.com/…/psquery-listing-sup… 2/3
23/01/2011 PS-Query listing supervisor hierarchy (…
Twitter PeopleSoft Project & Portfolio Management Storage Toolbox for HR
Toolbox.com on Twitter SAP Storage Toolbox for Finance
Toolbox.com on SCM Cloud Computing
Facebook Siebel Cloud Computing

Copyright 1998-2011 Toolbox.com. All rights reserved. All product names are trademarks of their respective companies. Toolbox.com is not
affiliated with or endorsed by any company listed at this site. Toolbox.com is a subsidiary of the Corporate Executive Board.

…ittoolbox.com/…/psquery-listing-sup… 3/3

You might also like