ALIEN_REG2_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 ,%Substring(VISA_WRKPMT_NBR,2,10 ) , COUNTRY , VISA_PERMIT_TYPE FROM PS_VISA_PMT_DATA A WHERE 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
Prompt Table: PEOPLE_SRCH |
2 | VISA_WRKPMT_NBR | Character(15) | VARCHAR2(15) NOT NULL | Visa/Permit Number |
3 | COUNTRY | Character(3) | VARCHAR2(3) NOT NULL | Country |
4 | VISA_PERMIT_TYPE | Character(3) | VARCHAR2(3) NOT NULL | Visa/Permit Type |