MADE_SRCH_VW1

(SQL View)
Index Back

Search Record


SELECT DISTINCT A.SETID ,A.CUST_ID ,A.NAME1 ,A.ADDRESS_SEQ_SOLD ,A.CNTCT_SEQ_SOLD ,A.CURRENCY_CD ,A.CUST_LEVEL ,A.CUR_RT_TYPE ,B.PHONE ,B.CITY ,B.STATE ,B.POSTAL FROM PS_CUSTOMER A , PS_CUST_ADDRESS B WHERE A.SETID = B.SETID AND A.CUST_ID = B.CUST_ID AND A.CUST_STATUS = 'A' AND A.EXP_PENDING = 'N' AND %EffdtCheck(CUST_ADDRESS,B,%CurrentDateIn) AND B.EFF_STATUS='A' AND A.SOLD_TO_FLG = 'Y' AND A.ADDRESS_SEQ_NUM = B.ADDRESS_SEQ_NUM

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

Default Value: OPR_DEF_TBL_FS.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 NAME1 Character(40) VARCHAR2(40) NOT NULL Name 1
4 ADDRESS_SEQ_SOLD Number(5,0) INTEGER NOT NULL Primary Address - Sold To
5 CNTCT_SEQ_SOLD Number(5,0) INTEGER NOT NULL Primary Contact - Sold To
6 CURRENCY_CD Character(3) VARCHAR2(3) NOT NULL Currency Code
7 CUST_LEVEL Character(1) VARCHAR2(1) NOT NULL Customer Level
N=New
P=Prospect
R=Regular
S=Short-Term
T=Temporary
8 RT_TYPE Character(5) VARCHAR2(5) NOT NULL Defines a category of market rates for currency conversion. Some examples of rate types are commercial, average, floating, and historical.
9 PHONE Character(24) VARCHAR2(24) NOT NULL Telephone
10 CITY Character(30) VARCHAR2(30) NOT NULL City
11 STATE Character(6) VARCHAR2(6) NOT NULL State
12 POSTAL Character(12) VARCHAR2(12) NOT NULL Postal