T2202_HDR_VW

(SQL View)
Index Back

T2202 Header - Eff Dated

View used to return most effective dated rows from T2202_HDR

SELECT A.INSTITUTION , A.CALENDAR_YEAR , A.EMPLID , A.EFFDT , A.EFF_STATUS , A.ACAD_PROG , A.DESCR , A.NAME , A.COUNTRY , A.ADDRESS1 , A.ADDRESS2 , A.ADDRESS3 , A.ADDRESS4 , A.CITY , A.NUM1 , A.NUM2 , A.HOUSE_TYPE , A.ADDR_FIELD1 , A.ADDR_FIELD2 , A.ADDR_FIELD3 , A.COUNTY , A.STATE , A.POSTAL , A.GEO_CODE , A.IN_CITY_LIMIT , A.OPRID , A.DATETIME_CREATED , A.DATETIME_UPDATED , A.DATETIME_PRINTED , A.PRINT_STATUS , A.CORRECTION_FLG , A.SIN , A.SSF_CRA_SLIP_TYPE , A.SF_TAX_TRANS_STAT , A.SF_TAX_TRANS_DTTM , A.PROCESS_INSTANCE FROM PS_T2202_HDR A WHERE A.EFFDT = ( SELECT MAX(A1.EFFDT) FROM PS_T2202_HDR A1 WHERE A1.INSTITUTION = A.INSTITUTION AND A1.CALENDAR_YEAR = A.CALENDAR_YEAR AND A1.EMPLID = A.EMPLID AND A1.EFFDT <= %CurrentDateIn)

# PeopleSoft Field Name PeopleSoft Field Type Database Column Type Description
1 INSTITUTION Character(5) VARCHAR2(5) NOT NULL Academic Institution

Default Value: OPR_DEF_TBL_CS.INSTITUTION

Prompt Table: INSTITUTION_TBL

2 CALENDAR_YEAR Number(4,0) SMALLINT NOT NULL Calendar Year
3 EMPLID Character(11) VARCHAR2(11) NOT NULL Employee ID

Prompt Table: PEOPLE_SRCH

4 EFFDT Date(10) DATE NOT NULL Effective Date

Default Value: %date

5 EFF_STATUS Character(1) VARCHAR2(1) NOT NULL Effective Status
A=Active
I=Inactive

Default Value: A

6 ACAD_PROG Character(5) VARCHAR2(5) NOT NULL Academic Program

Prompt Table: ACAD_PROG_TBL

7 DESCR Character(30) VARCHAR2(30) NOT NULL Description
8 NAME Character(50) VARCHAR2(50) NOT NULL Name

Default Value: SCC_PRI_NAME_VW.NAME

9 COUNTRY Character(3) VARCHAR2(3) NOT NULL Country

Prompt Table: SCC_CNT_ADFMTVW

10 ADDRESS1 Character(55) VARCHAR2(55) NOT NULL Address 1
11 ADDRESS2 Character(55) VARCHAR2(55) NOT NULL Address 2
12 ADDRESS3 Character(55) VARCHAR2(55) NOT NULL Address 3
13 ADDRESS4 Character(55) VARCHAR2(55) NOT NULL Address 4
14 CITY Character(30) VARCHAR2(30) NOT NULL City
15 NUM1 Character(6) VARCHAR2(6) NOT NULL Number 1
16 NUM2 Character(6) VARCHAR2(6) NOT NULL Number 2
17 HOUSE_TYPE Character(2) VARCHAR2(2) NOT NULL House Type
AB=House Boat Reference
WW=House Trailer Reference
18 ADDR_FIELD1 Character(2) VARCHAR2(2) NOT NULL Address Field 1
19 ADDR_FIELD2 Character(4) VARCHAR2(4) NOT NULL Address Field 2
20 ADDR_FIELD3 Character(4) VARCHAR2(4) NOT NULL Address Field 3
21 COUNTY Character(30) VARCHAR2(30) NOT NULL County
22 STATE Character(6) VARCHAR2(6) NOT NULL State

Prompt Table: STATE_TBL

23 POSTAL Character(12) VARCHAR2(12) NOT NULL Postal
24 GEO_CODE Character(11) VARCHAR2(11) NOT NULL Geo Code
25 IN_CITY_LIMIT Character(1) VARCHAR2(1) NOT NULL In City Limit

Y/N Table Edit

26 OPRID Character(30) VARCHAR2(30) NOT NULL A user's ID (see PSOPRDEFN).
27 DATETIME_CREATED DateTime(26) TIMESTAMP DateTime Created

Default Value: %date

28 DATETIME_UPDATED DateTime(26) TIMESTAMP DateTime Updated
29 DATETIME_PRINTED DateTime(26) TIMESTAMP DateTime Printed
30 PRINT_STATUS Character(1) VARCHAR2(1) NOT NULL Use for printing
N=Never Printed
P=Previously Printed

Default Value: N

31 CORRECTION_FLG Character(1) VARCHAR2(1) NOT NULL Correction Flag

Y/N Table Edit

32 SIN Character(9) VARCHAR2(9) NOT NULL Social Insurance #
33 SSF_CRA_SLIP_TYPE Character(1) VARCHAR2(1) NOT NULL CRA - T2202 - Slip Report Type Code
A=Amendment
C=Cancel
O=Original

Default Value: O

34 SF_TAX_TRANS_STAT Character(1) VARCHAR2(1) NOT NULL 1098-T File Transmittal Status

Y/N Table Edit

Default Value: N

35 SF_TAX_TRANS_DTTM DateTime(26) TIMESTAMP 1098-T Transmittal Date/Timestamp
36 PROCESS_INSTANCE Number(10,0) DECIMAL(10) NOT NULL Process Instance