T2202_DATA_VW(SQL View) |
Index Back |
---|---|
T2202 Data - Effective DatedView used to return most effective dated rows in T2202_DATA table. |
SELECT A.INSTITUTION , A.CALENDAR_YEAR , A.EMPLID , A.EFFDT , A.SEQ_NO , A.MONTH_FROM , A.YEAR_FROM , A.MONTH_TO , A.YEAR_TO , A.OVERRIDE_FLG , A.FEE_AMT , A.NBR_FULL_MTHS , A.NBR_PART_MTHS , A.STRM FROM PS_T2202_DATA A WHERE A.EFFDT = ( SELECT MAX(A1.EFFDT) FROM PS_T2202_DATA 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 |
2 | CALENDAR_YEAR | Number(4,0) | SMALLINT NOT NULL | Calendar Year |
3 | EMPLID | Character(11) | VARCHAR2(11) NOT NULL | Employee ID |
4 | EFFDT | Date(10) | DATE NOT NULL | Effective Date |
5 | SEQ_NO | Number(2,0) | SMALLINT NOT NULL | Sequence Number |
6 | MONTH_FROM | Number(2,0) | SMALLINT NOT NULL | Month From |
7 | YEAR_FROM | Number(4,0) | SMALLINT NOT NULL | Year From |
8 | MONTH_TO | Number(2,0) | SMALLINT NOT NULL | Month To |
9 | YEAR_TO | Number(4,0) | SMALLINT NOT NULL | Year To |
10 | OVERRIDE_FLG | Character(1) | VARCHAR2(1) NOT NULL | Override Flag |
11 | FEE_AMT | Number(15,2) | DECIMAL(14,2) NOT NULL | Fee Amount |
12 | NBR_FULL_MTHS | Number(3,0) | SMALLINT NOT NULL | Number of Fulltime Months |
13 | NBR_PART_MTHS | Number(3,0) | SMALLINT NOT NULL | Number of Parttime Months |
14 | STRM | Character(4) | VARCHAR2(4) NOT NULL | Term |