CORP_CUSTDTL_VW

(SQL View)
Index Back

AR Corporate Customer Detail


select %substring(t.setid,1,5), t.tree_node, c.setid, c.cust_id, c.name1 from PSTREENODE t, ps_customer c, pstreeleaf l where t.tree_name = 'AR_CORPORATE_CUST' and t.effdt = (select max(effdt) from PSTREENODE where setid = t.setid and tree_name=t.tree_name and effdt <= %currentdatein) and t.tree_node_num > 1 and l.setid = t.setid and l.tree_name = t.tree_name and l.effdt = t.effdt and l.tree_node_num between t.tree_node_num and t.tree_node_num_end and c.setid = (select setid from ps_set_cntrl_rec where setcntrlvalue = t.setid and recname = 'CUSTOMER' ) and c.cust_id between l.range_from and l.range_to

# PeopleSoft Field Name PeopleSoft Field Type Database Column Type Description
1 SETID Character(5) VARCHAR2(5) NOT NULL SetID
2 CORP_CUST Character(20) VARCHAR2(20) NOT NULL Corporate Customer
3 CUSTOMER_SETID Character(5) VARCHAR2(5) NOT NULL Customer SetID
4 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.
5 NAME1 Character(40) VARCHAR2(40) NOT NULL Name 1