I have a table like this:
log_id | user_id | login_date | logout_date
I need to run a query to get the users that logged out up to 1 minute after they logged in.
So if a user logged in at 2:02:02, and then logged out at 2:02:34. I would want them in this list.
But, a user that logged in at 2:03:00 and then logged out at at 2:04:01 I would not want them in this list.
Any ideas how to write this query? Thanks in advance!
1 Answer