FO_CUST_NULL_VW

(SQL View)
Index Back

Cust Null View

This view contains all the valid customer id's as well as a null row. This is used specifically on reports (FOAG03) to match to rows that don't have a customer id.

SELECT A.SETID ,A.CUST_ID ,A.NAME1 ,B.PHONE FROM PS_CUSTOMER A ,PS_CUST_ADDRESS B WHERE B.CUST_ID = A.CUST_ID AND B.SETID = A.SETID AND B.ADDRESS_SEQ_NUM = A.ADDRESS_SEQ_NUM AND B.EFFDT = ( SELECT MAX (C.EFFDT) FROM PS_CUST_ADDRESS C WHERE C.SETID = B.SETID AND C.CUST_ID = B.CUST_ID AND C.ADDRESS_SEQ_NUM = B.ADDRESS_SEQ_NUM AND C.EFFDT <= %CurrentDateIn)

# PeopleSoft Field Name PeopleSoft Field Type Database Column Type Description
1 SETID Character(5) VARCHAR2(5) NOT NULL 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.
3 NAME1 Character(40) VARCHAR2(40) NOT NULL Name 1
4 PHONE Character(24) VARCHAR2(24) NOT NULL Telephone