TD_CUSTOMER_VW

(SQL View)
Index Back

Promotion customer view

All Customers in current Promotions Tree

SELECT DISTINCT D.SETID , A.CUST_ID , C.NAME1 FROM PS_TD_TREE_NODE A , PS_CUSTOMER C , PS_TD_SETID_TBL D , PS_SET_CNTRL_REC F WHERE D.SETID = F.SETCNTRLVALUE AND F.RECNAME = 'CUSTOMER' AND F.SETID = A.SETID AND A.SETID = C.SETID AND A.CUST_ID = C.CUST_ID AND A.TD_TREE_ID = D.TD_TREE_ID_CUST AND %EffdtCheck(TD_TREE_HDR A_EFF, A, %CurrentDateIn)

# PeopleSoft Field Name PeopleSoft Field Type Database Column Type Description
1 SETID Character(5) VARCHAR2(5) NOT NULL SetID
2 CUST_ID Character(15) VARCHAR2(15) NOT NULL Uniquely identifies an organizational entity that purchases goods or services from the enterprise. Represents the sold-to customer which is the customer organization that places orders. The CUST_ID may or may not be the same as the identifiers for the bill-to and ship-to locations.
3 NAME1 Character(40) VARCHAR2(40) NOT NULL Name 1