ISIR_ADDR_TP_VW(SQL View) |
Index Back |
---|---|
ISIR Aid Address ViewThis view is used for selecting the address based upon the address usage for the address search panel. This view utilizes the address order table to find the matching address, if any. |
SELECT A.EMPLID , C.ADDRESS_TYPE , C.ADDR_USAGE_ORDER FROM PS_ADDRESSES A , PS_ADDR_ORDER_TBL C , PS_FA_PRCSDEMO_TBL D WHERE A.ADDRESS_TYPE = C.ADDRESS_TYPE AND A.EFFDT = ( SELECT MAX(A11.EFFDT) FROM PS_ADDRESSES A11 WHERE A11.EMPLID = A.EMPLID AND A11.ADDRESS_TYPE = A.ADDRESS_TYPE AND A11.EFFDT <=%CurrentDateIn) AND C.ADDR_USAGE = D.ADDR_USAGE AND D.FA_PROCESS_NAME = 'I' AND C.ADDR_USAGE_ORDER = ( SELECT MIN(C1.ADDR_USAGE_ORDER) FROM PS_ADDR_ORDER_TBL C1 WHERE C1.ADDR_USAGE = D.ADDR_USAGE AND C1.ADDRESS_TYPE IN ( SELECT A1.ADDRESS_TYPE FROM PS_ADDRESSES A1 WHERE A1.EMPLID = A.EMPLID AND A1.EFFDT = ( SELECT MAX(A2.EFFDT) FROM PS_ADDRESSES A2 WHERE A2.EMPLID = A1.EMPLID AND A2.ADDRESS_TYPE = A1.ADDRESS_TYPE AND A2.EFFDT<=%CurrentDateIn) AND A1.EFF_STATUS = 'A')) |
# | PeopleSoft Field Name | PeopleSoft Field Type | Database Column Type | Description |
---|---|---|---|---|
1 | EMPLID | Character(11) | VARCHAR2(11) NOT NULL |
Employee ID
Prompt Table: STDNT_AID_SRCH |
2 | ADDRESS_TYPE | Character(4) | VARCHAR2(4) NOT NULL |
Address Type
Prompt Table: ADDRESS_TYP_TBL |
3 | ADDR_USAGE_ORDER | Number(4,0) | SMALLINT NOT NULL | Address Usage Order |