RA_CMPG_WAV_CST(SQL View) |
Index Back |
---|---|
Grouping Campaign Costs viewView used for Smart View report - campaign activity costs |
SELECT A.BUSINESS_UNIT , A.RA_CAMPAIGN_ID ,WC.RA_CMPGN_WAVE_ID , %Round((CASE WHEN WC.RA_ACTUAL_AMT IS NULL THEN 0 ELSE WC.RA_ACTUAL_AMT END) + ((CASE WHEN CC.RA_ACTUAL_AMT IS NULL THEN 0 ELSE CC.RA_ACTUAL_AMT END) / COUNT(*)) ,2) FROM PS_RA_CMPGN_WAVE A , PS_RA_CMPG_CST_GRP CC , PS_RA_WAVE_CST_GRP WC WHERE A.BUSINESS_UNIT = CC.BUSINESS_UNIT(+) AND A.RA_CAMPAIGN_ID = CC.RA_CAMPAIGN_ID(+) AND A.BUSINESS_UNIT = WC.BUSINESS_UNIT(+) AND A.RA_CAMPAIGN_ID = WC.RA_CAMPAIGN_ID(+) GROUP BY A.BUSINESS_UNIT , A.RA_CAMPAIGN_ID ,WC.RA_CMPGN_WAVE_ID ,CC.RA_ACTUAL_AMT , WC.RA_ACTUAL_AMT |
# | PeopleSoft Field Name | PeopleSoft Field Type | Database Column Type | Description |
---|---|---|---|---|
1 | BUSINESS_UNIT | Character(5) | VARCHAR2(5) NOT NULL | Business Unit |
2 | 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. |
3 | RA_CMPGN_WAVE_ID | Character(15) | VARCHAR2(15) NOT NULL | Used to uniquely identify a Marketing - Campaign Activity (wave) ID |
4 | RA_ACTUAL_AMT | Signed Number(15,2) | DECIMAL(13,2) NOT NULL | Campaign Actual Cost / Value |