GM_WC_PRJDTL_VW(SQL View) |
Index Back |
---|---|
Project Details |
SELECT DISTINCT DTL.CONTRACT_NUM , DTL.CONTRACT_LINE_NUM , PRJ.BUSINESS_UNIT , PRJ.PROJECT_ID , ST.PROJECT_STATUS , PRJ.START_DT , PRJ.END_DT , GM_PRJ.DEPTID FROM PS_CA_DETAIL DTL , PS_CA_DETAIL_PROJ DTL_PRJ , PS_PROJECT PRJ , PS_GM_PRJ_DEPT GM_PRJ , PS_PROJECT_STATUS ST WHERE DTL.CONTRACT_NUM = DTL_PRJ.CONTRACT_NUM AND DTL.CONTRACT_LINE_NUM=DTL_PRJ.CONTRACT_LINE_NUM AND DTL_PRJ.BUSINESS_UNIT_PC = PRJ.BUSINESS_UNIT AND DTL_PRJ.PROJECT_ID = PRJ.PROJECT_ID AND DTL_PRJ.BUSINESS_UNIT_PC = GM_PRJ.BUSINESS_UNIT AND DTL_PRJ.PROJECT_ID = GM_PRJ.PROJECT_ID AND ST.BUSINESS_UNIT = DTL_PRJ.BUSINESS_UNIT_PC AND ST.PROJECT_ID = DTL_PRJ.PROJECT_ID AND ST.EFFDT = ( SELECT MAX(PS1.EFFDT) FROM PS_PROJECT_STATUS PS1 WHERE PS1.BUSINESS_UNIT = ST.BUSINESS_UNIT AND PS1.PROJECT_ID = ST.PROJECT_ID AND PS1.EFFDT <= %CurrentDateIn) AND ST.EFFSEQ = ( SELECT MAX(PS2.EFFSEQ) FROM PS_PROJECT_STATUS PS2 WHERE PS2.BUSINESS_UNIT = ST.BUSINESS_UNIT AND PS2.PROJECT_ID = ST.PROJECT_ID AND PS2.EFFDT = ST.EFFDT) |
# | PeopleSoft Field Name | PeopleSoft Field Type | Database Column Type | Description |
---|---|---|---|---|
1 | Character(25) | VARCHAR2(25) NOT NULL | Contract | |
2 | Number(3,0) | SMALLINT NOT NULL | Contract Line Num | |
3 | Character(5) | VARCHAR2(5) NOT NULL | Business Unit | |
4 | Character(15) | VARCHAR2(15) NOT NULL | Project Id ChartField | |
5 | PROJECT_STATUS | Character(1) | VARCHAR2(1) NOT NULL |
Project Status
B=Budgeted C=Closed H=Hold O=Open P=Proposed Prompt Table: PROJ_STATUS_TBL |
6 | START_DT | Date(10) | DATE | Start Date |
7 | END_DT | Date(10) | DATE | End Date |
8 | DEPTID | Character(10) | VARCHAR2(10) NOT NULL | Department |