RX_CUST_VW

(SQL View)
Index Back

All Sold To Customer's View

This record is a view of all sold to customers.

SELECT A.SETID , A.CUST_ID , A.BO_ID , B.BO_NAME FROM PS_BC A , PS_BO B WHERE A.BO_ID = B.BO_ID AND A.CUSTOMER_IND = 'Y' AND A.CUST_STATUS = 'A' AND EXISTS ( SELECT 'X' FROM PS_BO_ROLE C WHERE C.BO_ID = A.BO_ID AND C.ROLE_TYPE_ID = 2 AND C.ROLE_START_DT <= %CurrentDateIn AND C.ROLE_END_DT >= %CurrentDateIn)

# PeopleSoft Field Name PeopleSoft Field Type Database Column Type Description
1 SETID Character(5) VARCHAR2(5) NOT NULL This field is used to store the value of SetID on various setup tables.
2 CUST_ID Character(15) VARCHAR2(15) NOT NULL Customer ID
3 BO_ID_CUST Number(31,0) DECIMAL(31) NOT NULL This field stores the Business Object ID for the customer.
4 BO_NAME Character(50) VARCHAR2(50) NOT NULL Name Description of Business Object