diff --git a/solution/0500-0599/0511.Game Play Analysis I/README.md b/solution/0500-0599/0511.Game Play Analysis I/README.md index da8252f7d73c3..db27d36caba5d 100644 --- a/solution/0500-0599/0511.Game Play Analysis I/README.md +++ b/solution/0500-0599/0511.Game Play Analysis I/README.md @@ -59,7 +59,11 @@ Result 表: ### **SQL** ```sql - +SELECT + player_id, MIN(event_date) first_login +FROM + Activity +GROUP BY player_id; ``` diff --git a/solution/0500-0599/0511.Game Play Analysis I/README_EN.md b/solution/0500-0599/0511.Game Play Analysis I/README_EN.md index 4acd626a70e8b..ce6be2c7b8752 100644 --- a/solution/0500-0599/0511.Game Play Analysis I/README_EN.md +++ b/solution/0500-0599/0511.Game Play Analysis I/README_EN.md @@ -60,7 +60,11 @@ Activity table: ### **SQL** ```sql - +SELECT + player_id, MIN(event_date) first_login +FROM + Activity +GROUP BY player_id; ``` diff --git a/solution/0500-0599/0511.Game Play Analysis I/Solution.sql b/solution/0500-0599/0511.Game Play Analysis I/Solution.sql new file mode 100644 index 0000000000000..efdb452703424 --- /dev/null +++ b/solution/0500-0599/0511.Game Play Analysis I/Solution.sql @@ -0,0 +1,5 @@ +SELECT + player_id, MIN(event_date) first_login +FROM + Activity +GROUP BY player_id;