SELECT
FSAV.USER_NAME,
FU.DESCRIPTION,
FSAV.RESPONSIBILITY_NAME,
FSAV.USER_FORM_NAME,
FSAV.LOGIN_NAME,
FSAV.TIME,
FSAV.PID,
FSAV.TERMINAL_ID,
FSAV.USER_ID,
FSAV.RESP_APPL_ID,
FSAV.RESPONSIBILITY_ID,
FSAV.FORM_ID,
FSAV.FORM_APPL_ID
FROM FND_SIGNON_AUDIT_VIEW FSAV,
FND_USER FU
WHERE 1=1
AND
FSAV.LOGIN_NAME=‘&test‘
AND FSAV.USER_ID = FU.USER_ID
order by
to_number(substr(FSAV.TIME,1,instr(FSAV.TIME,‘:‘)-1))*60
+
to_number(substr(FSAV.TIME,instr(FSAV.TIME,‘:‘)+1))