RA_QUOTES2_VW

(SQL View)
Index Back

View 2 for # of Quotes metric

This view gives the # of Quotes

SELECT A.BUSINESS_UNIT_RA , B.RA_ROLLUP_CMPGN_ID ,A.RA_CAMPAIGN_ID ,A.RA_CMPGN_WAVE_ID , COUNT(*) , C.CAPTURE_ID FROM PS_RSF_LEAD A ,PS_RA_RLUP_MET_VW B ,PS_RO_RSF_LOPPY_VW C WHERE A.OPPORTUNITY_ID = C.OPPORTUNITY_ID AND A.RA_CAMPAIGN_ID <> ' ' AND C.OPPORTUNITY_ID <> ' ' AND C.CAPTURE_TYPE_CD = 'QUO' AND A.BUSINESS_UNIT_RA = B.BUSINESS_UNIT AND A.RA_CAMPAIGN_ID = B.RA_CAMPAIGN_ID GROUP BY A.BUSINESS_UNIT_RA, B.RA_ROLLUP_CMPGN_ID,A.RA_CAMPAIGN_ID, A.RA_CMPGN_WAVE_ID, C.CAPTURE_ID

# PeopleSoft Field Name PeopleSoft Field Type Database Column Type Description
1 BUSINESS_UNIT Character(5) VARCHAR2(5) NOT NULL Business Unit
2 RA_ROLLUP_CMPGN_ID Character(15) VARCHAR2(15) NOT NULL Campaign - Roll Up (Parent) Campaign Identification
3 RA_CAMPAIGN_ID Character(15) VARCHAR2(15) NOT NULL Marketing - Campaign Identification field. Character field that will contain a generated campaign or free form entered campaign id.
4 RA_CMPGN_WAVE_ID Character(15) VARCHAR2(15) NOT NULL Used to uniquely identify a Marketing - Campaign Activity (wave) ID
5 RA_ACTUAL_AMT Signed Number(15,2) DECIMAL(13,2) NOT NULL Campaign Actual Cost / Value
6 CAPTURE_ID Character(20) VARCHAR2(20) NOT NULL Field use to store the capture ID in order capture.