RSF_SITE_VW

(SQL View)
Index Back

The Sales Site view

This view returns all the Sites for the Competitor(Company).

SELECT DISTINCT A.BO_ID_CUST , A.NAME1 , B.BO_ID_1 , B.BO_ID_2 , B.ROLE_TYPE_ID_1 , B.ROLE_TYPE_ID_2 , B.REL_TYPE_ID FROM PS_RSF_OPPORTUNITY A , PS_BO_REL B WHERE A.BO_ID_CUST = B.BO_ID_1 AND B.ROLE_TYPE_ID_1 IN (2, 9) AND B.ROLE_TYPE_ID_2 = 3 AND B.REL_TYPE_ID IN (4, 17) AND B.START_DT <= %CurrentDateIn AND B.END_DT > %CurrentDateIn

# PeopleSoft Field Name PeopleSoft Field Type Database Column Type Description
1 BO_ID_CUST Number(31,0) DECIMAL(31) NOT NULL This field stores the Business Object ID for the customer.
2 BO_NAME Character(50) VARCHAR2(50) NOT NULL Name Description of Business Object
3 BO_ID_1 Signed Number(32,0) DECIMAL(31) NOT NULL Business Object ID 1
4 BO_ID_2 Signed Number(32,0) DECIMAL(31) NOT NULL Business Object ID 2
5 ROLE_TYPE_ID_1 Number(12,0) DECIMAL(12) NOT NULL Role Type ID
6 ROLE_TYPE_ID_2 Number(12,0) DECIMAL(12) NOT NULL Role Type ID
7 REL_TYPE_ID Number(12,0) DECIMAL(12) NOT NULL Relationship Type ID