CUST_SRCH4_LNG(SQL View) |
Index Back |
---|---|
RLR for CUST_NM_TOSI_VW |
SELECT DISTINCT C.setid , C.cust_id , D.language_cd , D.name1 FROM ps_customer C , ps_cust_address A , PS_CUST_OPTION X , PS_CUST_TEAM CT , PS_TEAM_CODE_TBL TCT , PS_TEAM_MEMBERS TM , PS_CUSTOMER_LANG D WHERE c.cust_status = 'A' AND c.bill_to_flg = 'Y' AND c.cust_level <> 'P' AND A.SETID = D.SETID AND A.CUST_ID = D.CUST_ID AND C.setid = A.setid AND C.cust_id = A.cust_id AND %EffdtCheck(CUST_ADDRESS A2, A, %CurrentDateIn) AND A.EFF_STATUS = 'A' AND C.SETID = X.SETID AND C.CUST_ID = X.CUST_ID AND %EffdtCheck(CUST_OPTION X2, X, %CurrentDateIn) AND X.EFF_STATUS = 'A' AND CT.SETID = C.SETID AND CT.CUST_ID = C.CUST_ID AND CT.DEFAULT_FLAG = 'Y' AND TCT.SETID = ( SELECT SETID FROM PS_SET_CNTRL_REC WHERE RECNAME = 'TEAM_CODE_TBL' AND SETCNTRLVALUE = CT.SETID) AND TCT.SUPPORT_TEAM_CD = CT.SUPPORT_TEAM_CD AND %EffdtCheck(TEAM_CODE_TBL TCT2, TCT, %CurrentDateIn) AND TCT.EFF_STATUS = 'A' AND TM.SETID = TCT.SETID AND TM.SUPPORT_TEAM_CD = TCT.SUPPORT_TEAM_CD AND TM.EFFDT = TCT.EFFDT AND TM.PRIORITY = ( SELECT MIN(Y.PRIORITY) FROM PS_TEAM_MEMBERS Y , PS_MEMBER_PERSON MP , PS_MEMBER_TYPE_TBL MT WHERE Y.SETID = TM.SETID AND Y.SUPPORT_TEAM_CD = TM.SUPPORT_TEAM_CD AND Y.EFFDT = TM.EFFDT AND Y.PRIORITY > 0 AND MP.SETID = Y.SETID AND MP.SUPPORT_TEAM_MBR = Y.SUPPORT_TEAM_MBR AND MT.SETID = MP.SETID AND MT.TEAM_MEMBER_TYPE = MP.TEAM_MEMBER_TYPE AND %EffdtCheck(MEMBER_TYPE_TBL MT2, MT, %CurrentDateIn) AND MT.EFF_STATUS = 'A' AND MT.SALES_PERSON = 'Y' ) |
# | PeopleSoft Field Name | PeopleSoft Field Type | Database Column Type | Description |
---|---|---|---|---|
1 | TO_SETID | Character(5) | VARCHAR2(5) NOT NULL | To 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.
Prompt Table: CUST_NM_TOSI_VW |
3 | LANGUAGE_CD | Character(3) | VARCHAR2(3) NOT NULL | Language Code |
4 | NAME1 | Character(40) | VARCHAR2(40) NOT NULL | Name 1 |