PMT_REASON_VW(SQL View) |
Index Back |
---|---|
Scrap Reason Code View06/06/00 ST Added rel lang record |
SELECT a.setid , a.reason_type , a.reason_cd , a.effdt , a.eff_status , a.descr50 , a.descrlong FROM PS_REASON_CD a WHERE reason_type = 'FG01' AND a.effdt = ( SELECT MAX(b.effdt) FROM PS_REASON_CD b WHERE b.setid = a.setid AND b.reason_type = a.reason_type AND b.reason_cd = a.reason_cd AND b.effdt <= %CurrentDateIn) AND a.eff_status = 'A' |
# | PeopleSoft Field Name | PeopleSoft Field Type | Database Column Type | Description |
---|---|---|---|---|
1 | SETID | Character(5) | VARCHAR2(5) NOT NULL | SetID |
2 | REASON_TYPE | Character(4) | VARCHAR2(4) NOT NULL | Reason Type |
3 | REASON_CD | Character(10) | VARCHAR2(10) NOT NULL | Reason Code |
4 | EFFDT | Date(10) | DATE | Effective Date |
5 | EFF_STATUS | Character(1) | VARCHAR2(1) NOT NULL |
Effective Status
A=Active I=Inactive |
6 | DESCR50 | Character(50) | VARCHAR2(50) NOT NULL | Description of length 50 |
7 | DESCRLONG | Long Character | CLOB | Long Description |