AUC_CUST_LANG

(SQL View)
Index Back

Bidder Search - customer lang


SELECT a.setid , b.cust_id , b.language_cd , b.name1 , b.nameshort , a.address_seq_num , a.cntct_seq_num , a.cust_status FROM PS_CUSTOMER a , PS_CUSTOMER_lang b WHERE a.setid = b.setid AND a.cust_id = b.cust_id UNION SELECT aa.setid , aa.cust_id , ' ' , aa.name1 , aa.nameshort , aa.address_seq_num , aa.cntct_seq_num , aa.cust_status FROM PS_CUSTOMER aa WHERE NOT EXISTS ( SELECT 'X' FROM PS_CUSTOMER_LANG BB WHERE BB.SETID = aa.SETID AND BB.CUST_ID = aa.CUST_ID)

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

Prompt Table: SETID_TBL

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 LANGUAGE_CD Character(3) VARCHAR2(3) NOT NULL Language Code
4 NAME1 Character(40) VARCHAR2(40) NOT NULL Name 1
5 NAMESHORT Character(10) VARCHAR2(10) NOT NULL Short Name
6 ADDRESS_SEQ_NUM Number(5,0) INTEGER NOT NULL Address Sequence Number
7 CNTCT_SEQ_NUM Number(5,0) INTEGER NOT NULL Contact Sequence Number
8 CUST_STATUS Character(1) VARCHAR2(1) NOT NULL Customer Status
A=Active
I=Inactive
T=Template