RA_ROI_QRY_VW

(SQL View)
Index Back

View used for ROI report Query

View used for determining the ROI for query reporting

SELECT A.BUSINESS_UNIT , A.RA_ROLLUP_CMPGN_ID , A.RA_CAMPAIGN_ID , B.RA_CMPGN_WAVE_ID , A.RA_CMPGN_NAME , A.START_DATE , A.END_DATE , B.RA_WAVE_NAME ,CASE WHEN C.RA_ACTUAL_AMT IS NULL THEN 0 WHEN C.RA_ACTUAL_AMT IS NOT NULL THEN C.RA_ACTUAL_AMT END ,CASE WHEN D.CONVERTED_AMT IS NULL THEN 0 WHEN D.CONVERTED_AMT IS NOT NULL THEN D.CONVERTED_AMT END FROM PS_RA_CAMPAIGN A , PS_RA_CMPGN_WAVE B , PS_RA_CMPG_WAV_CST C , PS_RA_REVENUE2_VW D WHERE A.BUSINESS_UNIT = B.BUSINESS_UNIT AND A.RA_CAMPAIGN_ID = B.RA_CAMPAIGN_ID AND B.BUSINESS_UNIT = C.BUSINESS_UNIT(+) AND B.RA_CAMPAIGN_ID = C.RA_CAMPAIGN_ID(+) AND B.RA_CMPGN_WAVE_ID = C.RA_CMPGN_WAVE_ID(+) AND B.BUSINESS_UNIT = D.BUSINESS_UNIT(+) AND B.RA_CAMPAIGN_ID = D.RA_CAMPAIGN_ID(+) AND B.RA_CMPGN_WAVE_ID = D.RA_CMPGN_WAVE_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_CMPGN_NAME Character(50) VARCHAR2(50) NOT NULL Campaign Name - field containing the name of the campaign.
6 START_DATE Date(10) DATE Start Date for Gen Standing PO
7 END_DATE Date(10) DATE End date field to store an end date.
8 RA_WAVE_NAME Character(50) VARCHAR2(50) NOT NULL Campaign Activity (Wave) Name - field containing the campaign activity (wave) name. Campaign Activity (Wave Name) could be either program generated or free form entry.
9 RA_ACTUAL_AMT Signed Number(15,2) DECIMAL(13,2) NOT NULL Campaign Actual Cost / Value
10 CONVERTED_AMT Number(19,3) DECIMAL(18,3) NOT NULL Converted Amount