SPR_CONLOSRR_VW(SQL View) |
Index Back |
---|---|
sPro Length of Stay by Dept DtsPro Length of Stay by Department Detail View |
SELECT DISTINCT A.OPRID ,A.BUSINESS_UNIT ,A.PROJ_ROLE ,A.WO_CONID ,A.WORK_ORDER_ID ,C.NAME ,A.START_DATE ,A.PROJECTED_END_DATE ,A.END_DATE ,AVG(A.LENGTH_OF_STAY) ,AVG(A.EX_DURATION_DAYS) ,A.AS_OF_DATE FROM PS_SPR_LOSTAY_FACT A , PS_SPR_PERSON_DIM C WHERE A.BUSINESS_UNIT = C.BUSINESS_UNIT AND C.PERSON_ID = A.WO_CONID GROUP BY A.OPRID ,A.BUSINESS_UNIT ,A.PROJ_ROLE ,A.WO_CONID ,A.WORK_ORDER_ID ,C.NAME ,A.START_DATE ,A.PROJECTED_END_DATE ,A.END_DATE ,A.AS_OF_DATE |
# | PeopleSoft Field Name | PeopleSoft Field Type | Database Column Type | Description |
---|---|---|---|---|
1 | OPRID | Character(30) | VARCHAR2(30) NOT NULL | A user's ID (see PSOPRDEFN). |
2 | BUSINESS_UNIT | Character(5) | VARCHAR2(5) NOT NULL | Business Unit |
3 | PROJ_ROLE | Character(15) | VARCHAR2(15) NOT NULL | Project Role |
4 | WO_CONID | Character(15) | VARCHAR2(15) NOT NULL | Service Provider's ID assigned on work order |
5 | WORK_ORDER_ID | Character(15) | VARCHAR2(15) NOT NULL | Work Order ID |
6 | SP_CONTRACTOR_NAME | Character(50) | VARCHAR2(50) NOT NULL | Service Provider |
7 | START_DATE | Date(10) | DATE | Start Date for Gen Standing PO |
8 | PROJECTED_END_DATE | Date(10) | DATE | Projected End Date of Length of Stay Analysis |
9 | END_DATE | Date(10) | DATE | End Date |
10 | LENGTH_OF_STAY | Number(5,0) | INTEGER NOT NULL | Length of Stay in Days |
11 | EX_DURATION_DAYS | Signed Number(6,0) | DECIMAL(5) NOT NULL | Excess Duration for Length of Stay |
12 | AS_OF_DATE | Date(10) | DATE | As of Date |