GM_CA_RATE_VW

(SQL View)
Index Back

Contrat Rates


SELECT RT.CONTRACT_NUM ,RT.CONTRACT_LINE_NUM ,RT.EFFDT ,RT.EFF_STATUS ,RT.BUSINESS_UNIT_PC ,RT.RATE_TMPL_OPTION ,CASE WHEN RT.RATE_TMPL_OPTION IN ('CRTP' ,'URTP') THEN RT.RATE_PLAN ELSE RT.PC_TEMPLATE_ID END ,CASE WHEN RT.RATE_TMPL_OPTION IN ('CRTP' ,'URTP') THEN RP.DESCR ELSE RS.DESCR END FROM ((PS_CA_RATE RT LEFT OUTER JOIN PS_PC_RATE_HDR RS ON RT.BUSINESS_UNIT_PC = RS.BUSINESS_UNIT AND RT.PC_TEMPLATE_ID = RS.PC_TEMPLATE_ID) LEFT OUTER JOIN PS_PC_RATE_PLAN RP ON RT.BUSINESS_UNIT_PC = RP.BUSINESS_UNIT AND RT.RATE_PLAN = RP.RATE_PLAN) ,PS_CA_DETAIL DTL WHERE RT.CONTRACT_NUM = DTL.CONTRACT_NUM AND RT.CONTRACT_LINE_NUM = DTL.CONTRACT_LINE_NUM AND DTL.CA_LINE_STATUS <>'C' AND DTL.CHG_STATUS <> 'X'

  • Related Language Record: GM_CA_RATE_LVW
  • # PeopleSoft Field Name PeopleSoft Field Type Database Column Type Description
    1 CONTRACT_NUM Character(25) VARCHAR2(25) NOT NULL Contract
    2 CONTRACT_LINE_NUM Number(3,0) SMALLINT NOT NULL Contract Line Num
    3 EFFECTIVE_DATE Date(10) DATE Effective Date
    4 EFF_STATUS Character(1) VARCHAR2(1) NOT NULL Effective Status
    A=Active
    I=Inactive
    5 BUSINESS_UNIT_PC Character(5) VARCHAR2(5) NOT NULL PC Business Unit
    6 RATE_TMPL_OPTION Character(4) VARCHAR2(4) NOT NULL Rate Option
    CRTP=Contract Rate Plan
    NSTD=Contract Rate Set
    TMPL=Rate Set
    URTP=Rate Plan
    7 PC_TEMPLATE_ID Character(15) VARCHAR2(15) NOT NULL Rate Template ID
    8 DESCR Character(30) VARCHAR2(30) NOT NULL Description