GM_VNDR_ADDR_VW

(SQL View)
Index Back

Active Supplier Addresses

View of supplier addresses that are active - used for prompting

select a.setid, a.vendor_id, a.address_seq_num, a.effdt, b.descr, %subrec(addr_lstbx2_sbr,a) 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(c.effdt) from PS_VENDOR_ADDR c where c.setid=a.setid and c.vendor_id=a.vendor_id and c.address_seq_num= a.address_seq_num)

# 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 IN_CITY_LIMIT Character(1) VARCHAR2(1) NOT NULL In City Limit
12 COUNTY Character(30) VARCHAR2(30) NOT NULL County
13 STATE Character(6) VARCHAR2(6) NOT NULL State
14 GEO_CODE Character(11) VARCHAR2(11) NOT NULL Geo Code
15 POSTAL Character(12) VARCHAR2(12) NOT NULL Postal
16 COUNTRY Character(3) VARCHAR2(3) NOT NULL Country