View to fetch values for external codes for category purpose

EXT_CODE_VW3

(SQL View)
Index Back

SELECT DISTINCT A.EXT_TYPE ,a.cd ,a.cd_name FROM PS_EXT_CODE_TBL a WHERE A.EXT_TYPE = 'ACT' AND a.effdt = ( SELECT MAX(effdt) FROM PS_EXT_CODE_TBL a1 WHERE a.ext_type = a1.ext_type AND a.cd= a1.cd)

# PeopleSoft Field Name PeopleSoft Field Type Database Column Type Description
1 EXT_TYPE Character(3) VARCHAR2(3) NOT NULL External Type
2 CD Character(30) VARCHAR2(30) NOT NULL Code
3 CD_NAME Character(254) VARCHAR2(254) NOT NULL Code Name