GM_DEPT_TBL_VW2(SQL View) |
Index Back |
---|---|
Primary Project dept view |
SELECT A.SETID , A.DEPTID , A.EFF_STATUS , A.DESCR , B.BUSINESS_UNIT , B.PROPOSAL_ID , B.VERSION_ID , A.LOCATION , A.DESCRSHORT , A.DEPTID FROM PS_DEPT_TBL A , PS_GM_PROP_PROJ B WHERE A.DEPTID = B.DEPTID AND B.PRIMARY_FLAG = 'Y' AND A.EFFDT = ( SELECT MAX(C.EFFDT) FROM PS_DEPT_TBL C WHERE A.SETID = C.SETID AND A.DEPTID = C.DEPTID AND C.EFFDT <= %CurrentDateIn) |
# | PeopleSoft Field Name | PeopleSoft Field Type | Database Column Type | Description |
---|---|---|---|---|
1 | SETID | Character(5) | VARCHAR2(5) NOT NULL |
SetID
Default Value: OPR_DEF_TBL_FS.SETID Prompt Table: SP_SETID_NONVW |
2 | DEPTID | Character(10) | VARCHAR2(10) NOT NULL |
Department
Prompt Table: DEPT_TBL |
3 | EFF_STATUS | Character(1) | VARCHAR2(1) NOT NULL |
Effective Status
A=Active I=Inactive Default Value: A |
4 | DESCR | Character(30) | VARCHAR2(30) NOT NULL | Description |
5 | BUSINESS_UNIT | Character(5) | VARCHAR2(5) NOT NULL | Business Unit |
6 | PROPOSAL_ID | Character(25) | VARCHAR2(25) NOT NULL | Proposal ID |
7 | VERSION_ID | Character(7) | VARCHAR2(7) NOT NULL | Version ID |
8 | LOCATION | Character(10) | VARCHAR2(10) NOT NULL |
Location Code
Prompt Table: LOCATION_TBL |
9 | DESCRSHORT | Character(10) | VARCHAR2(10) NOT NULL | Short Description |
10 | MAJOR_SUBDIVISION | Character(10) | VARCHAR2(10) NOT NULL | Major Subdivision ID |