Skip to content

Commit cacf484

Browse files
committed
Time: 485 ms (93.00%) | Memory: 0B (100.00%) - LeetSync
1 parent ce56d20 commit cacf484

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
# Write your MySQL query statement below
2+
SELECT ROUND(COUNT(DISTINCT player_id)/(SELECT COUNT(DISTINCT player_id) FROM Activity), 2) AS fraction
3+
FROM Activity WHERE (player_id, DATE_SUB(event_date, INTERVAL 1 DAY))
4+
IN (SELECT player_id, MIN(event_date) AS first_login FROM Activity GROUP BY player_id);

0 commit comments

Comments
 (0)