RA_OPPOR_VW(SQL View) |
Index Back |
---|---|
View for # of OpportunityThis view gives the # of Opportunities |
SELECT L.BUSINESS_UNIT_RA , R.RA_ROLLUP_CMPGN_ID ,L.RA_CAMPAIGN_ID ,L.RA_CMPGN_WAVE_ID ,COUNT(*) FROM PS_RSF_OPPORTUNITY L ,PS_RA_RLUP_MET_VW R WHERE L.OPPORTUNITY_ID <> ' ' AND L.RA_CAMPAIGN_ID <> ' ' AND L.BUSINESS_UNIT_RA = R.BUSINESS_UNIT AND L.RA_CAMPAIGN_ID = R.RA_CAMPAIGN_ID GROUP BY L.BUSINESS_UNIT_RA ,R.RA_ROLLUP_CMPGN_ID,L.RA_CAMPAIGN_ID ,L.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_ACTUAL_AMT | Signed Number(15,2) | DECIMAL(13,2) NOT NULL | Campaign Actual Cost / Value |