SQL Gaps and Islands Problem: Find Consecutive Login Streaks Using Window Functions | clearpatt.com