• Skip to primary navigation
  • Skip to content
  • Skip to footer
Thomas Ngo Thomas Ngo
  • Home
  • Journal
  • Tags
  • About

    Thomas Ngo

    Software Engineer

    • Stanton, California
    • Email
    • GitHub
    • Resume

    SQL problem - Game Play Analysis I

    February 2, 2024 less than 1 minute read

    Page Navigation

    • Problem
    • Query

    Problem

    problem

    Query

    The idea is to GROUP BY clause to group all player_id, then apply aggregation function MIN on event_date

    SELECT
        player_id, MIN(event_date) AS first_login
    FROM
        Activity
    GROUP BY player_id
    

    Tags: SQL

    Updated: February 2, 2024

    Share on

    Twitter Facebook LinkedIn
    Previous Next

    You may also enjoy

    Problem of The Day: Numbers With Same Consecutive Differences

    October 5, 2025 1 minute read

    Problem Statement

    Problem of The Day: Combination Sum III

    October 5, 2025 less than 1 minute read

    Problem Statement

    Problem of The Day: Largest Perimeter Triangle

    September 28, 2025 less than 1 minute read

    Problem Statement

    Problem of The Day: Triangle

    September 24, 2025 less than 1 minute read

    Problem Statement

    • Follow:
    • GitHub
    • LinkedIn
    © 2025 Thomas Ngo.