Epic Games tracks player logins across multiple platforms. You need to write a query that reports the device_id for the first login date of every player.
| player_id(INTEGER) | device_id(INTEGER) | event_date(DATE) | games_played(INTEGER) |
|---|---|---|---|
| 1 | 2 | 2026-02-01 | 5 |
| 1 | 3 | 2026-02-02 | 0 |
| 2 | 3 | 2026-01-25 | 1 |
| 3 | 1 | 2026-02-01 | 0 |
| 3 | 4 | 2025-12-30 | 5 |
| device_id(INTEGER) | device_type(VARCHAR) |
|---|---|
| 1 | PC |
| 2 | PS5 |
| 3 | Xbox |
| 4 | Mobile |
| player_id(INTEGER) | player_name(VARCHAR) |
|---|---|
| 1 | Ninja |
| 2 | SypherPK |
| 3 | Lupo |
| player_id(INTEGER) | device_id(INTEGER) |
|---|---|
| 1 | 2 |
| 2 | 3 |
| 3 | 4 |