logins has a duplicate row. Return the distinct logins as user_id, login_date using ROW_NUMBER to keep the first copy.
25 rows with columns user_id, login_date — first 3 shown:
| # | ||
|---|---|---|
| 1 | 1 | 2025-01-01 |
| 2 | 1 | 2025-01-02 |
| 3 | 1 | 2025-01-03 |
Run your code to see the output here.