OME_CNCT_SL_VW

(SQL View)
Index Back

Current Sold To Contacts - OM

Date Initials Issue # Description 031703 JJM 508675000 Updated SQL

SELECT CC.CUSTOMER_SETID , CC.CUST_ID , CC.CNTCT_SEQ_NUM , CC.EFFDT , CC.EFF_STATUS , CC.ADDRESS_SEQ_NUM , CC.CONTACT_ID , CT.NAME1 , CT.TITLE FROM PS_CONTACT CT , PS_CONTACT_CUST CC WHERE CT.SETID = CC.SETID AND CT.CONTACT_ID = CC.CONTACT_ID AND CT.EFFDT = CC.EFFDT AND CT.EFF_STATUS = 'A' AND CC.EFF_STATUS = 'A' AND EXISTS ( SELECT 'X' FROM PS_CUST_ADDR_SEQ SEQ WHERE SEQ.SETID = CC.CUSTOMER_SETID AND SEQ.CUST_ID = CC.CUST_ID AND SEQ.ADDRESS_SEQ_NUM = CC.ADDRESS_SEQ_NUM AND SEQ.SOLD_TO_ADDR = 'Y')

# 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: SETID_TBL

2 SOLD_TO_CUST_ID Character(15) VARCHAR2(15) NOT NULL Sold To Customer

Prompt Table: CUSTOMER

3 CNTCT_SEQ_NUM Number(5,0) INTEGER NOT NULL Contact Sequence Number

Prompt Table: CUST_CONTACT

4 EFFDT Date(10) DATE Effective Date
5 EFF_STATUS Character(1) VARCHAR2(1) NOT NULL Effective Status
A=Active
I=Inactive
6 ADDRESS_SEQ_SOLD Number(5,0) INTEGER NOT NULL Primary Address - Sold To
7 CONTACT_ID Character(15) VARCHAR2(15) NOT NULL Contact Identifier for Treasury Contacts
8 NAME1 Character(40) VARCHAR2(40) NOT NULL Name 1
9 TITLE Character(35) VARCHAR2(35) NOT NULL Title