MS SQL Solution
Code\n\n/* Write your T-SQL query statement below */\n    with stats as (\n        select player_id, min(event_date) as first_date\n        from activity\n     
# Code\n```\n/* Write your T-SQL query statement below */\n    with stats as (\n        select player_id, min(event_date) as first_date\n        from activity\n        group by player_id\n    ),\n    logged_users as (\n        select activity.player_id\n        from activity\n        join stats on activity.player_id = stats.player_id\n        where datediff(day, first_date, event_date) = 1\n    )\n\nselect\n    round(count(logged_users.player_id) * 1.0 / \n    (select count(distinct player_id) from activity), 2)\n    as fraction\nfrom logged_users\n\n```
['MS SQL Server']