VENDOR_ADDR_VW5(SQL View) |
Index Back |
---|---|
Active Supplier AddressesView of supplier addresses that are active - used for prompting Added an Effective Date SubSelect |
SELECT A.SETID , A.VENDOR_ID , A.ADDRESS_SEQ_NUM , A.EFFDT , B.DESCR , A.ADDRESS1 , A.ADDRESS2 , A.ADDRESS3 , A.ADDRESS4 , A.CITY , A.STATE , A.POSTAL , A.CITY %Concat ',' %Concat A.STATE %Concat ',' %Concat A.POSTAL FROM PS_VENDOR_ADDR A , PS_VNDR_ADDR_SCROL B WHERE A.EFF_STATUS = 'A' AND A.SETID = B.SETID AND A.VENDOR_ID = B.VENDOR_ID AND A.ADDRESS_SEQ_NUM = B.ADDRESS_SEQ_NUM AND A.EFFDT = ( SELECT MAX(EFFDT) FROM PS_VENDOR_ADDR WHERE SETID = B.SETID AND VENDOR_ID = B.VENDOR_ID AND ADDRESS_SEQ_NUM = B.ADDRESS_SEQ_NUM AND EFFDT <= %CurrentDateIn) |
# | PeopleSoft Field Name | PeopleSoft Field Type | Database Column Type | Description |
---|---|---|---|---|
1 | SETID | Character(5) | VARCHAR2(5) NOT NULL | SetID |
2 | VENDOR_ID | Character(10) | VARCHAR2(10) NOT NULL | Vendor Identifier |
3 | ADDRESS_SEQ_NUM | Number(5,0) | INTEGER NOT NULL | Address Sequence Number |
4 | EFFDT | Date(10) | DATE | Effective Date |
5 | DESCR | Character(30) | VARCHAR2(30) NOT NULL | Description |
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 | STATE | Character(6) | VARCHAR2(6) NOT NULL | State |
12 | POSTAL | Character(12) | VARCHAR2(12) NOT NULL | Postal |
13 | DESCR60 | Character(60) | VARCHAR2(60) NOT NULL | Description |