Kevin Burkhardt
11/28/2022, 7:45 AMBolek Ziobrowski
11/28/2022, 9:07 AMselect *
from user_activity ua1
lt join user_activity ua2
where datediff('h', ua2.ts, ua1.ts) >= 1;
javier ramirez
11/28/2022, 9:58 AMua1.action = 'login'.
Otherwise if you are checking only for one day and the user started the session at, let’s say 23:59 the day before, you can have weird resultsKevin Burkhardt
11/29/2022, 9:02 AM