Game Play Analysis II

ASKED IN INTERVIEW
2pts
Epic Games

Problem Statement

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.

Rules:

  • The "first login date" is the earliest event_date recorded for a specific player_id.
  • Output columns: player_id, device_id.
  • Results must be sorted by player_id in ascending order.
Tests your understanding of
Window Functions, Subqueries and Grouping

Input Tables

Activity
player_id(INTEGER)device_id(INTEGER)event_date(DATE)games_played(INTEGER)
122026-02-015
132026-02-020
232026-01-251
312026-02-010
342025-12-305
Devices
device_id(INTEGER)device_type(VARCHAR)
1PC
2PS5
3Xbox
4Mobile
Players
player_id(INTEGER)player_name(VARCHAR)
1Ninja
2SypherPK
3Lupo

Expected Output

player_id(INTEGER)device_id(INTEGER)
12
23
34

Tags

EasyASKED IN INTERVIEWWindow FunctionsSubqueriesGrouping
10-15 min
62%

Hints