ORD_PRCCSGP2_VW

(SQL View)
Index Back

Ord-Cust-Price grp link view


select cln.setid, cln.cust_id, cln.customer_group, c1.effdt, c1.eff_status from ps_set_cntrl_rec sc, ps_cust_group_tbl c1, ps_cust_cgrp_lnk cln, ps_set_cntrl_rec sc2, PS_ORD_HEADER oh where sc.setcntrlvalue = cln.setid and sc.recname = 'CUSTGP_PRC_VW' and c1.setid = sc.setid and c1.eff_status = 'A' and c1.customer_group = cln.customer_group and c1.cust_grp_type = 'PRC' and cln.cust_grp_type = 'PRC' and cln.cust_id = oh.sold_to_cust_id and cln.setid = sc2.setid and sc2.setcntrlvalue = oh.business_unit and sc2.recname = 'CUST_SLD_VW'

# PeopleSoft Field Name PeopleSoft Field Type Database Column Type Description
1 SETID Character(5) VARCHAR2(5) NOT NULL SetID

Prompt Table: SP_SETID_NONVW

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 CUSTOMER_GROUP Character(10) VARCHAR2(10) NOT NULL Customer Group
4 EFFDT Date(10) DATE Effective Date
5 EFF_STATUS Character(1) VARCHAR2(1) NOT NULL Effective Status
A=Active
I=Inactive