RSF_OPPCTQRY_V2(SQL View) |
Index Back |
---|---|
Opportunity Contact joinLeft Outer Join to bring the contacts information for an opportunity |
SELECT A.OPPORTUNITY_ID , A.OPPORTUNITY_NAME , A.OPPORTUNITY_STATUS , A.BUSINESS_UNIT , A.CURRENCY_CD , A.ACT_REVENUE , A.SALES_USER_NAME , A.EST_CLOSE_DT , A.CONFIDENCE_PCT , A.SALES_MODEL , A.SALES_STAGE , A.STAGE_PCT_CLOSE , A.FORECAST_TOTAL , A.CUST_SETID , A.BO_ID_CUST , A.NAME1 , A.TERRITORY_ID , ' ' , ' ' FROM PS_RSF_OPPORTUNITY A WHERE NOT EXISTS ( SELECT 'x' FROM PS_RSF_CNTCT_BC_VW B WHERE A.BO_ID_CUST = B.BO_ID_CUST AND A.CONTACT_ID = B.CONTACT_ID) |
# | PeopleSoft Field Name | PeopleSoft Field Type | Database Column Type | Description |
---|---|---|---|---|
1 | OPPORTUNITY_ID | Character(15) | VARCHAR2(15) NOT NULL |
Opportunity ID
Default Value: NEXT |
2 | OPPORTUNITY_NAME | Character(50) | VARCHAR2(50) NOT NULL | Opportunity Name - User Enters this field in Mixed Case. |
3 | OPPORTUNITY_STATUS | Character(1) | VARCHAR2(1) NOT NULL |
Opportunity Status. The values are XLat Values
0=Open 1=Closed - Lost 2=Closed - Won 3=Inactive Default Value: 0 |
4 | BUSINESS_UNIT | Character(5) | VARCHAR2(5) NOT NULL |
Business Unit
Default Value: RSF_OPR_DEF_VW.BUSINESS_UNIT Prompt Table: SP_BU_RSF_NONVW |
5 | CURRENCY_CD | Character(3) | VARCHAR2(3) NOT NULL |
This field stores the Currency Code value.
Prompt Table: CURRENCY_CD_TBL |
6 | ACT_REVENUE | Number(27,3) | DECIMAL(26,3) NOT NULL | Actual Revenue |
7 | SALES_USER_NAME | Character(50) | VARCHAR2(50) NOT NULL | Sales User Name field |
8 | EST_CLOSE_DT | Date(10) | DATE | Estimated Close Date of an Opportunity |
9 | CONFIDENCE_PCT | Number(3,0) | SMALLINT NOT NULL | Confidence Percentage |
10 | SALES_MODEL | Character(18) | VARCHAR2(18) NOT NULL |
Sales Model Id
Prompt Table: RSF_SALES_MODEL |
11 | SALES_STAGE | Character(24) | VARCHAR2(24) NOT NULL |
Sales Stage Identifier
Prompt Table: RSF_SALES_STG_V |
12 | STAGE_PCT_CLOSE | Number(3,0) | SMALLINT NOT NULL | To indicate a % of how much a stage is completed |
13 | FORECAST_TOTAL | Signed Number(28,3) | DECIMAL(26,3) NOT NULL | Forecast Total |
14 | CUST_SETID | Character(5) | VARCHAR2(5) NOT NULL | Customer Setid |
15 | BO_ID_CUST | Number(31,0) | DECIMAL(31) NOT NULL | This field stores the Business Object ID for the customer. |
16 | NAME1 | Character(50) | VARCHAR2(50) NOT NULL | Generic 50 character name field for storing names. |
17 | TERRITORY_ID | Character(20) | VARCHAR2(20) NOT NULL | Territory ID |
18 | FIRST_NAME | Character(30) | VARCHAR2(30) NOT NULL | First Name |
19 | LAST_NAME | Character(30) | VARCHAR2(30) NOT NULL | Last Name |