I'm trying to get a list of users and their "last" or most recent login time which is stored in the field start_date_time from table ppes_request. Here's my query:
select distinct(user_name) from ppes_session, ppes_request
where ppes_request.session_id = ppes_session.session_id
This shows a list of all users, but I'm having difficulty adding the start_date_time to this statement.
What function will I need to use to just get their last login time and not a list of all their logins.
Thanks!
select distinct(user_name) from ppes_session, ppes_request
where ppes_request.session_id = ppes_session.session_id
This shows a list of all users, but I'm having difficulty adding the start_date_time to this statement.
What function will I need to use to just get their last login time and not a list of all their logins.
Thanks!