DEPT_POSITIONS1

(SQL View)
Index Back

Positions within Department

The list of all positions in a given Department. This view is used for F4 prompt support in Position Budgeting.

SELECT B.SETID , A.DEPTID , A.POSITION_NBR , A.EFFDT ,A.EFF_STATUS , A.DESCR FROM PS_POSITION_DATA A , PS_DEPT_TBL B WHERE B.SETID = ( SELECT Z.SETID FROM PS_SET_CNTRL_REC Z WHERE Z.SETCNTRLVALUE = A.BUSINESS_UNIT AND Z.RECNAME = 'DEPT_TBL') AND B.DEPTID = A.DEPTID AND B.EFFDT = ( SELECT MAX(D.EFFDT) FROM PS_DEPT_TBL D WHERE D.DEPTID = B.DEPTID AND D.SETID = B.SETID AND D.EFFDT <= %CurrentDateIn)

# PeopleSoft Field Name PeopleSoft Field Type Database Column Type Description
1 SETID Character(5) VARCHAR2(5) NOT NULL SetID
2 DEPTID Character(10) VARCHAR2(10) NOT NULL Department
3 POSITION_NBR Character(8) VARCHAR2(8) NOT NULL Position Number
4 EFFDT Date(10) DATE Effective Date

Default Value: %date

5 EFF_STATUS Character(1) VARCHAR2(1) NOT NULL Effective Status
A=Active
I=Inactive
6 DESCR Character(30) VARCHAR2(30) NOT NULL Description