RA_REVENUE2_VW(SQL View) |
Index Back |
---|---|
View for Revenue MetricsThis view will be used for RollUps, Campaign and Wave. This view is built on top of RA_CUST_COUNT modified by Raj |
SELECT A.BUSINESS_UNIT ,R.RA_ROLLUP_CMPGN_ID ,A.RA_CAMPAIGN_ID ,A.RA_CMPGN_WAVE_ID , SUM(B.REV_AMT ) FROM PS_RA_CUST_COUNT B , PS_RA_CMPGN_WAVE A , PS_RA_RLUP_MET_VW R WHERE A.RA_PROMOTION_CODE = B.RA_PROMOTION_CODE AND A.BUSINESS_UNIT = R.BUSINESS_UNIT AND A.RA_CAMPAIGN_ID = R.RA_CAMPAIGN_ID GROUP BY A.BUSINESS_UNIT ,R.RA_ROLLUP_CMPGN_ID,A.RA_CAMPAIGN_ID ,A.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 | CONVERTED_AMT | Number(19,3) | DECIMAL(18,3) NOT NULL | Converted Amount |