PSACCESSLOG
OPRID: The users operator ID
LOGIPADDRESS: The users IP address
LOGINDTTM: A timestamp showing when the user logged in
LOGOUTDTTM: A timestamp showing when the user logged out
PT_SIGNON_TYPE: The signon type
Find Last Login Date for User:
SELECT * FROM PSACCESSLOG WHERE oprid = '<OPERATOR ID>' ORDER BY effdt DESC; |
SELECT * FROM PSACCESSLOG WHERE TO_DATE(CAST(logindttm AS DATE), 'dd/mm/yy') >= TO_DATE('01/03/2014', 'dd/mm/yy'); |
No comments:
Post a Comment