PC_CUR_STAT_VW2

(SQL View)
Index Back

Project Status View

This view contains all the same fields as the PROJECT_STATUS record. However, the view SQL will only pick up the most current effective date row based on system date.

SELECT A.BUSINESS_UNIT , A.PROJECT_ID , A.EFFDT , A.EFFSEQ , A.PROJECT_STATUS , A.PROJECT_PRIORITY , A.PERCENT_COMPLETE , A.INTEREST_FACTOR , A.DESCRLONG FROM PS_PROJECT_STATUS A WHERE A.EFFDT = ( SELECT MAX(B.EFFDT) FROM PS_PROJECT_STATUS B WHERE A.BUSINESS_UNIT = B.BUSINESS_UNIT AND A.PROJECT_ID = B.PROJECT_ID AND B.EFFDT <= %CurrentDateIn) AND A.EFFSEQ = ( SELECT MAX(C.EFFSEQ) FROM PS_PROJECT_STATUS C WHERE A.BUSINESS_UNIT = C.BUSINESS_UNIT AND A.PROJECT_ID = C.PROJECT_ID AND A.EFFDT = C.EFFDT)

  • Parent record: PROJECT
  • # PeopleSoft Field Name PeopleSoft Field Type Database Column Type Description
    1 BUSINESS_UNIT Character(5) VARCHAR2(5) NOT NULL Business Unit

    Default Value: PROJECT.BUSINESS_UNIT

    2 PROJECT_ID Character(15) VARCHAR2(15) NOT NULL Project Id ChartField
    3 EFFDT Date(10) DATE Effective Date

    Default Value: %date

    4 EFFSEQ Number(3,0) SMALLINT NOT NULL Effective Sequence
    5 PROJECT_STATUS Character(1) VARCHAR2(1) NOT NULL Project Status
    B=Budgeted
    C=Closed
    H=Hold
    O=Open
    P=Proposed
    6 PROJECT_PRIORITY Number(3,0) SMALLINT NOT NULL Project Priority
    7 PERCENT_COMPLETE Number(6,2) DECIMAL(5,2) NOT NULL % Complete
    8 INTEREST_FACTOR Signed Number(5,2) DECIMAL(3,2) NOT NULL Interest Calculation Factor
    9 DESCRLONG Long Character CLOB Long Description