SP_CSRCH2_LNG(SQL View) |
Index Back |
---|---|
SP_CSRCH2_LNG |
SELECT A.SETID ,A.CUST_ID , D.LANGUAGE_CD , D.NAMESHORT , D.NAME1 , D.NAME2 FROM PS_CUSTOMER A , PS_CUST_ADDRESS B , PS_CUST_OPTION C , PS_CUSTOMER_LANG D WHERE A.CUST_STATUS = 'A' AND A.BILL_TO_FLG = 'Y' AND A.CUST_LEVEL <> 'P' AND A.SETID = D.SETID AND A.CUST_ID = D.CUST_ID AND A.SETID = B.SETID AND A.CUST_ID = B.CUST_ID AND B.EFFDT = ( SELECT MAX(EFFDT) FROM PS_CUST_ADDRESS X WHERE B.SETID = X.SETID AND B.CUST_ID = X.CUST_ID AND B.ADDRESS_SEQ_NUM = X.ADDRESS_SEQ_NUM AND EFFDT <= %CurrentDateIn AND EFF_STATUS = 'A') AND A.SETID = C.SETID AND A.CUST_ID = C.CUST_ID AND C.EFFDT = ( SELECT MAX(C2.EFFDT) FROM PS_CUST_OPTION C2 WHERE C2.SETID = C.SETID AND C2.CUST_ID = C.CUST_ID AND C2.EFFDT <= %CurrentDateIn AND C2.EFF_STATUS = 'A') |
# | PeopleSoft Field Name | PeopleSoft Field Type | Database Column Type | Description |
---|---|---|---|---|
1 | Character(5) | VARCHAR2(5) NOT NULL | SetID | |
2 | 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 | Character(3) | VARCHAR2(3) NOT NULL | Language Code | |
4 | NAMESHORT | Character(10) | VARCHAR2(10) NOT NULL | Short Name |
5 | NAME1 | Character(40) | VARCHAR2(40) NOT NULL | Name 1 |
6 | NAME2 | Character(40) | VARCHAR2(40) NOT NULL | Name 2 |