PC_CA_RATE

(SQL View)
Index Back

Contract lines

This view is a join between CA_DETAIL_PROJ and CA_RATE to get the rate template option.

SELECT DTL.CONTRACT_NUM , DTL.CONTRACT_LINE_NUM , RTE.RATE_TMPL_OPTION , RTE.PC_TEMPLATE_ID FROM PS_CA_DETAIL_PROJ DTL , PS_CA_RATE RTE WHERE DTL.CONTRACT_NUM = RTE.CONTRACT_NUM AND DTL.CONTRACT_LINE_NUM = RTE.CONTRACT_LINE_NUM AND RTE.EFFDT = ( SELECT MAX(EFFDT) FROM PS_CA_RATE RT1 WHERE RT1.CONTRACT_NUM = RTE.CONTRACT_NUM AND RT1.CONTRACT_LINE_NUM = RTE.CONTRACT_LINE_NUM )

# 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 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
4 PC_TEMPLATE_ID Character(15) VARCHAR2(15) NOT NULL Rate Template ID