PROJ_TIME_VW

(SQL View)
Index Back

Project Time Spans View


SELECT A.BUSINESS_UNIT ,A.PROJECT_ID ,MIN(A.TRANS_DT) ,MAX(A.TRANS_DT) ,B.TIME_SPAN_NAME ,A.BUSINESS_UNIT_GL ,A.CURRENCY_CD ,A.UNIT_OF_MEASURE ,%Round(SUM(%DecMult(A.RESOURCE_QUANTITY,B.INTEGER_VALUE)), 2) ,%Round(SUM(%DecMult(A.RESOURCE_AMOUNT,B.INTEGER_VALUE)), 3) FROM PS_PROJ_RESOURCE A , PS_PROJ_TIME_SPAN B WHERE B.TIME_SPAN_TYPE = 'ALL' AND A.ANALYSIS_TYPE IN ('ACT', 'EMP') AND A.TRANS_DT BETWEEN B.START_DT AND B.END_DT GROUP BY A.BUSINESS_UNIT ,A.PROJECT_ID ,B.TIME_SPAN_NAME ,A.BUSINESS_UNIT_GL ,A.CURRENCY_CD ,A.UNIT_OF_MEASURE ,A.BUSINESS_UNIT

# PeopleSoft Field Name PeopleSoft Field Type Database Column Type Description
1 BUSINESS_UNIT Character(5) VARCHAR2(5) NOT NULL Business Unit

Prompt Table: SP_BU_AM_NONVW

2 PROJECT_ID Character(15) VARCHAR2(15) NOT NULL Project Id ChartField

Prompt Table: PROJECT

3 START_DT Date(10) DATE Start Date
4 END_DT Date(10) DATE End Date
5 TIME_SPAN_NAME Character(15) VARCHAR2(15) NOT NULL Time Span Name
6 BUSINESS_UNIT_GL Character(5) VARCHAR2(5) NOT NULL GL Business Unit
7 CURRENCY_CD Character(3) VARCHAR2(3) NOT NULL Currency Code

Prompt Table: CURRENCY_CD_TBL

8 UNIT_OF_MEASURE Character(3) VARCHAR2(3) NOT NULL Used on an approval rule set.
MHR=Muti Hourly
PER=Percentage
SQF=Square Footage

Prompt Table: UNITS_TBL

9 RESOURCE_QUANTITY Signed Number(16,2) DECIMAL(14,2) NOT NULL Quantity
10 RESOURCE_AMOUNT Signed Number(28,3) DECIMAL(26,3) NOT NULL Transaction Amount