C360_BILLADDRVW(SQL View) |
Index Back |
---|---|
Customer Credit View |
SELECT A.SETID , A.CUST_ID , A.ADDRESS_SEQ_NUM , A.DESCR , A.BILL_TO_ADDR , B.ADDRESS1 , B.ADDRESS2 , B.ADDRESS3 , B.ADDRESS4 , B.CITY , B.COUNTY , B.STATE , B.POSTAL , B.COUNTRY , B.COUNTRY_CODE , B.PHONE , B.EXTENSION , B.COUNTRY %Concat ' ' %Concat B.POSTAL %Concat ' ' %Concat B.STATE FROM PS_CUST_ADDR_SEQ A , PS_CUST_ADDRESS B , PS_CUSTOMER C WHERE ( A.SETID = B.SETID AND A.CUST_ID = B.CUST_ID AND A.ADDRESS_SEQ_NUM = B.ADDRESS_SEQ_NUM AND B.EFFDT = ( SELECT MAX(B_ED.EFFDT) FROM PS_CUST_ADDRESS B_ED WHERE B.SETID = B_ED.SETID AND B.CUST_ID = B_ED.CUST_ID AND B.ADDRESS_SEQ_NUM = B_ED.ADDRESS_SEQ_NUM AND B_ED.EFFDT <= %CurrentDateIn) AND A.BILL_TO_ADDR = 'Y') AND A.SETID = C.SETID AND A.CUST_ID = C.CUST_ID AND A.ADDRESS_SEQ_NUM = C.ADDRESS_SEQ_NUM |
# | 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 | ADDRESS_SEQ_NUM | Number(5,0) | INTEGER NOT NULL | Address Sequence Number |
4 | DESCR | Character(30) | VARCHAR2(30) NOT NULL | Description |
5 | BILL_TO_ADDR | Character(1) | VARCHAR2(1) NOT NULL | Bill To Address |
6 | ADDRESS1 | Character(55) | VARCHAR2(55) NOT NULL | Address 1 |
7 | ADDRESS2 | Character(55) | VARCHAR2(55) NOT NULL | Address 2 |
8 | ADDRESS3 | Character(55) | VARCHAR2(55) NOT NULL | Address 3 |
9 | ADDRESS4 | Character(55) | VARCHAR2(55) NOT NULL | Address 4 |
10 | CITY | Character(30) | VARCHAR2(30) NOT NULL | City |
11 | COUNTY | Character(30) | VARCHAR2(30) NOT NULL | County |
12 | STATE | Character(6) | VARCHAR2(6) NOT NULL | State |
13 | POSTAL | Character(12) | VARCHAR2(12) NOT NULL | Postal |
14 | COUNTRY | Character(3) | VARCHAR2(3) NOT NULL | Country |
15 | COUNTRY_CODE | Character(3) | VARCHAR2(3) NOT NULL | Int'l Prefix |
16 | PHONE | Character(24) | VARCHAR2(24) NOT NULL | Telephone |
17 | EXTENSION | Character(6) | VARCHAR2(6) NOT NULL | Phone Extension |
18 | C360_CTR_STT_PST | Character(25) | VARCHAR2(25) NOT NULL | Address concatenated info |