MySql Select last row with 30 minutes difference in date
问题 This is a followup to this question MySql Select rows with 30 minutes difference in date, albeit similar in concept the solution needed might be different. I have a MySql-8.0/MariaDb-10.4 table that contains a list of site visits of different visitors: I want to create a query that returns the last visit of each visit session , where the session definition is where the CreatedAt date is 30 min or more from the previous visits. So in my case, I should be returning row 7 (Id column), row 12 and