select sessionid,
          username,
         min(decode(action_name,'LOGON',TIMESTAMP)) logon_time,
        min(decode(action_name,'LOGOFF',TIMESTAMP)) logoff_time
    from dba_audit_session
    group by sessionid, username
    order by 2
;