DEPT_POSITIONS1(SQL View) |
Index Back |
---|
SELECT B.SETID ,A.DEPTID ,A.POSITION_NBR ,A.EFFDT ,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) AND A.EFFDT=( SELECT MAX(E.EFFDT) FROM PS_POSITION_DATA E WHERE E.DEPTID=B.DEPTID AND E.POSITION_NBR= A. POSITION_NBR AND E.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
Prompt Table: DEPT_TBL |
3 | POSITION_NBR | Character(8) | VARCHAR2(8) NOT NULL |
Position Number
Prompt Table: POSITION_DATA |
4 | EFFDT | Date(10) | DATE |
Effective Date
Default Value: %date |
5 | DESCR | Character(30) | VARCHAR2(30) NOT NULL | Description |