Game designers at Epic Games need to calculate player retention. The first step is to establish a "baseline" for every player by finding the date they first logged into the system.
Write an SQL query to report the first login date for each player.
| player_id(INTEGER) | device_id(INTEGER) | event_date(DATE) | games_played(INTEGER) |
|---|---|---|---|
| 1 | 2 | 2024-03-01 | 5 |
| 1 | 2 | 2024-03-02 | 6 |
| 2 | 3 | 2024-06-25 | 1 |
| 3 | 1 | 2024-03-02 | 0 |
| 3 | 4 | 2024-07-03 | 5 |
| player_id(INTEGER) | first_login(DATE) |
|---|---|
| 1 | 2024-03-01 |
| 2 | 2024-06-25 |
| 3 | 2024-03-02 |