VNDR_ADD2_AP_VW

(SQL View)
Index Back

SELECT A.SETID , A.VENDOR_ID , A.ADDRESS_SEQ_NUM , B.EFFDT , A.VNDR_ADDRESS_TYPE , A.DESCR , %subrec(ADDR_LSTBX2_SBR, B) FROM PS_VNDR_ADDR_SCROL A , PS_VENDOR_ADDR B WHERE B.SETID = A.SETID AND B.VENDOR_ID = A.VENDOR_ID AND B.ADDRESS_SEQ_NUM = A.ADDRESS_SEQ_NUM AND B.EFF_STATUS = 'A' AND B.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

Default Value: %date

5 VNDR_ADDRESS_TYPE Character(4) VARCHAR2(4) NOT NULL Address Type
BILL=Billing
BUSN=Business
CAMP=Campus
CLMS=Claims
CSRV=Customer Service
DORM=Dormitory
HOME=Home
LEGL=Legal
MAIL=Mailing
OTHR=Other
OTR2=Other 2
PERM=Permanent
PREF=Preferred
PREM=Premium Payment
RMIT=Remittance
VTRN=Veteran
WORK=Work
6 DESCR Character(30) VARCHAR2(30) NOT NULL Description
7 ADDRESS1 Character(55) VARCHAR2(55) NOT NULL Address 1
8 ADDRESS2 Character(55) VARCHAR2(55) NOT NULL Address 2
9 ADDRESS3 Character(55) VARCHAR2(55) NOT NULL Address 3
10 ADDRESS4 Character(55) VARCHAR2(55) NOT NULL Address 4
11 CITY Character(30) VARCHAR2(30) NOT NULL City
12 IN_CITY_LIMIT Character(1) VARCHAR2(1) NOT NULL In City Limit
13 COUNTY Character(30) VARCHAR2(30) NOT NULL County
14 STATE Character(6) VARCHAR2(6) NOT NULL State
15 GEO_CODE Character(11) VARCHAR2(11) NOT NULL Geo Code
16 POSTAL Character(12) VARCHAR2(12) NOT NULL Postal
17 COUNTRY Character(3) VARCHAR2(3) NOT NULL Country