SQL interview question: Users who logged in three days in a row
hard
gaps and islands
ROW_NUMBER
CTE
Return the user_id of every user who logged in on at least three consecutive calendar days. A user can log in more than once a day.
Expected columns: user_id. Column names don't have to match. Runs on SQLite in your browser.
Tables: logins
Your query
Ctrl/Cmd + Enter