I have a table storing user login & logout details with userid, username, login & logout datetime details.
Lets take that a user has logged in 20 times. I want to get the adjacent logged in datetime of time difference with 20 minutes. That is, the time difference between the adjacent login is 20 minutes.