Game Play Analysis I

2pts
Epic Games

Problem Statement

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.

Rules:

  • The result should include every player_id that has at least one record in the Activity table.
  • Return the player_id and their corresponding first_login date.
  • Results must be sorted by player_id in ascending order.
Tests your understanding of
Basic SQL, Aggregation, MIN and Grouping

Input Tables

activity
player_id(INTEGER)device_id(INTEGER)event_date(DATE)games_played(INTEGER)
122024-03-015
122024-03-026
232024-06-251
312024-03-020
342024-07-035

Expected Output

player_id(INTEGER)first_login(DATE)
12024-03-01
22024-06-25
32024-03-02

Tags

EasyBasic SQLAggregationMINGrouping
5-10 min
75%

Hints