RSF_TR_REO_L_VW(SQL View) |
Index Back |
---|---|
Territory Reorg - Leads |
SELECT DISTINCT B.TREE_NAME , B.TERRITORY_ID , C.PERSON_ID_MANAGER , B.PERSON_ID , A.LEAD_ID , A.DESCR50 , B.PRIMARY_FLG , A.NAME1 , A.LEAD_RATING , A.EST_REVENUE , A.LEAD_STATUS FROM PS_RSF_LEAD A , PS_RSF_LE_SLSREP B , PS_RSF_ACC_FROM_VW C WHERE B.LEAD_ID = A.LEAD_ID AND A.LEAD_STATUS IN('NE','OP','AC','RE','IM','WO','CO','RJ','DE','TB') AND B.PRIMARY_FLG = 'Y' AND A.RC_PROSPECT_SW = 'N' AND A.PERSON_ID = C.FROM_USER AND A.PERSON_ID = B.PERSON_ID AND B.TREE_NAME = C.TREE_NAME AND A.TREE_NAME = B.TREE_NAME |
# | PeopleSoft Field Name | PeopleSoft Field Type | Database Column Type | Description |
---|---|---|---|---|
1 | FROM_TREE | Character(18) | VARCHAR2(18) NOT NULL | Current Tree Name |
2 | FROM_TERRITORY | Character(20) | VARCHAR2(20) NOT NULL | Current Territory |
3 | PERSON_ID_MANAGER | Character(15) | VARCHAR2(15) NOT NULL | Contact Identifier for Treasury Contacts |
4 | FROM_SALES_REP | Character(15) | VARCHAR2(15) NOT NULL | Current Sales Representative |
5 | LEAD_ID | Character(15) | VARCHAR2(15) NOT NULL | Used by Sales Force Automation, this field uniquely identifies a Sales Lead. |
6 | DESCR50 | Character(50) | VARCHAR2(50) NOT NULL | Description of length 50 |
7 | PRIMARY_FLG | Character(1) | VARCHAR2(1) NOT NULL |
This is a flag which takes yes or no values and indicates whether the row is primary.
N=No Y=Yes |
8 | NAME1 | Character(50) | VARCHAR2(50) NOT NULL | Generic 50 character name field for storing names. |
9 | LEAD_RATING | Character(2) | VARCHAR2(2) NOT NULL | Used by Sales Force Automation to indicate the value (rating) of a lead, i.e. whether it's a Hot Lead or a Cold Lead. |
10 | EST_REVENUE | Signed Number(28,3) | DECIMAL(26,3) NOT NULL | The expected revenue (amount) associated with an Opportunity. This is particularly used for forecasting. |
11 | LEAD_STATUS | Character(2) | VARCHAR2(2) NOT NULL |
Used by Sales Force Automation to keep the status of a Sales Lead.
AC=Accepted CD=Closed - Duplicate CL=Closed - Won CO=Converted to Opportunity DE=Deferred IM=Imported LO=Closed - Lost NE=New OP=Open RE=Referred RJ=Rejected TB=Turnback WO=Working |