Menu

#Login_day

1 post

Feed
1 of 1 post
Find login streaks in SQL with the gaps-and-islands trick (PostgreSQL and SQLite)
📰
0Read More

Find login streaks in SQL with the gaps-and-islands trick (PostgreSQL and SQLite)

DEV Community: sql·DailyDrills·1 day ago
#MXmTEXnq
#devtosql#devto#dev#days#user_id

Find consecutive-day streaks in SQL with ROW_NUMBER: a worked example, the four bugs that give wrong streaks, and a SQLite version.

15s