HRS_LSTCNTCT_VW(SQL View) |
Index Back |
---|
SELECT A.HRS_CRSP_ID ,A.HRS_PERSON_ID , A.HRS_OWNER_ID , A.HRS_CNTCT_DT FROM PS_HRS_CRSPNOTF_VW A WHERE A.HRS_CNTCT_DT > (CASE WHEN ( SELECT MAX(C.HRS_CNTCT_DT) FROM PS_HRS_APP_NOTES_I C WHERE A.HRS_PERSON_ID = C.HRS_PERSON_ID) IS NULL THEN %DateIn('1900-01-01') ELSE ( SELECT MAX(C.HRS_CNTCT_DT) FROM PS_HRS_APP_NOTES_I C WHERE A.HRS_PERSON_ID = C.HRS_PERSON_ID) END) AND A.HRS_ROW_ADD_DTTM = ( SELECT MAX(B.HRS_ROW_ADD_DTTM) FROM PS_HRS_CRSPNOTF_VW B WHERE A.HRS_PERSON_ID=B.HRS_PERSON_ID) |
# | PeopleSoft Field Name | PeopleSoft Field Type | Database Column Type | Description |
---|---|---|---|---|
1 | HRS_CRSP_ID | Number(15,0) | DECIMAL(15) NOT NULL | Correspondence ID |
2 | HRS_PERSON_ID | Number(15,0) | DECIMAL(15) NOT NULL | Person Id |
3 | HRS_OWNER_ID | Character(11) | VARCHAR2(11) NOT NULL | Owner ID |
4 | HRS_CNTCT_DT | Date(10) | DATE | Contact Date |