ALIEN_REG_VW

(SQL View)
Index Back

ISIR Alien Registration #

View of visa work permit nbrs for country = 'USA' and visa permit type of 'AR1'.

SELECT EMPLID ,VISA_WRKPMT_NBR FROM PS_VISA_PMT_DATA A WHERE A.COUNTRY = 'USA' AND A.VISA_PERMIT_TYPE = 'AR1' AND A.DEPENDENT_ID = ' ' AND A.EFFDT = ( SELECT MAX(B.EFFDT) FROM PS_VISA_PMT_DATA B WHERE B.EMPLID = A.EMPLID AND B.COUNTRY = A.COUNTRY AND B.VISA_PERMIT_TYPE = A.VISA_PERMIT_TYPE AND B.DEPENDENT_ID = A.DEPENDENT_ID AND B.EFFDT <= %CurrentDateIn)

# PeopleSoft Field Name PeopleSoft Field Type Database Column Type Description
1 EMPLID Character(11) VARCHAR2(11) NOT NULL Employee ID
2 VISA_WRKPMT_NBR Character(15) VARCHAR2(15) NOT NULL Visa/Permit Number