You are running a retention analysis for a product team. The table logins stores one row per user per day that the user logged in (no duplicate (user_id, login_date) pairs).
A user is considered 'sticky' if they logged in on at least one pair of consecutive calendar days (for example, logging in on 2024-01-01 and again on 2024-01-02).
Write ONE query that returns only the sticky users. For each such user output two columns: user_id and first_login, where first_login is that user's earliest login date across all of their logins. Order the result by user_id ascending.