SAC_SS_BILTO_VW

(SQL View)
Index Back

PO and BILL TO information


SELECT C.BUSINESS_UNIT ,C.AUC_ID , C.AUC_ROUND , C.AUC_VERSION , B.DESCR , B.COUNTRY , B.ADDRESS1 , B.ADDRESS2 , B.ADDRESS3 , B.ADDRESS4 , B.CITY , B.NUM1 , B.NUM2 , B.HOUSE_TYPE , B.COUNTY , B.STATE , B.POSTAL ,B.BUILDING ,B.FLOOR ,B.COUNTRY_CODE ,B.PHONE ,B.EXTENSION ,B.FAX FROM PS_SET_CNTRL_REC A , PS_LOCATION_TBL B , PS_AUC_HDR C WHERE A.SETCNTRLVALUE = C.BUSINESS_UNIT AND A.RECNAME = 'LOCATION_TBL' AND B.SETID = A.SETID AND B.LOCATION = C.BILL_LOCATION AND B.EFFDT = ( SELECT MAX(EFFDT) FROM PS_LOCATION_TBL WHERE B.SETID = SETID AND B.LOCATION = LOCATION AND EFFDT <= %CurrentDateIn) AND B.EFF_STATUS = 'A'

# PeopleSoft Field Name PeopleSoft Field Type Database Column Type Description
1 BUSINESS_UNIT Character(5) VARCHAR2(5) NOT NULL Business Unit
2 AUC_ID Character(10) VARCHAR2(10) NOT NULL Event ID
3 AUC_ROUND Number(5,0) INTEGER NOT NULL Event Round
4 AUC_VERSION Number(5,0) INTEGER NOT NULL Event Version
5 DESCR Character(30) VARCHAR2(30) NOT NULL Description
6 COUNTRY Character(3) VARCHAR2(3) NOT NULL Country
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 NUM1 Character(6) VARCHAR2(6) NOT NULL Number 1
13 NUM2 Character(6) VARCHAR2(6) NOT NULL Number 2
14 HOUSE_TYPE Character(2) VARCHAR2(2) NOT NULL House Type
AB=House Boat
WW=Trailer
15 COUNTY Character(30) VARCHAR2(30) NOT NULL County
16 STATE Character(6) VARCHAR2(6) NOT NULL State
17 POSTAL Character(12) VARCHAR2(12) NOT NULL Postal
18 BUILDING Character(10) VARCHAR2(10) NOT NULL Building #
19 FLOOR Character(10) VARCHAR2(10) NOT NULL Floor #
20 COUNTRY_CODE Character(3) VARCHAR2(3) NOT NULL Int'l Prefix
21 PHONE Character(24) VARCHAR2(24) NOT NULL Telephone
22 EXTENSION Character(6) VARCHAR2(6) NOT NULL Phone Extension
23 FAX Character(24) VARCHAR2(24) NOT NULL Fax Number