Skip to content

Commit 12bdfeb

Browse files
authored
feat: add sql solution to lc problem: No.0511 (#770)
No.0511.Game Play Analysis I
1 parent d421285 commit 12bdfeb

File tree

3 files changed

+15
-2
lines changed

3 files changed

+15
-2
lines changed

solution/0500-0599/0511.Game Play Analysis I/README.md

+5-1
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,11 @@ Result 表:
5959
### **SQL**
6060

6161
```sql
62-
62+
SELECT
63+
player_id, MIN(event_date) first_login
64+
FROM
65+
Activity
66+
GROUP BY player_id;
6367
```
6468

6569
<!-- tabs:end -->

solution/0500-0599/0511.Game Play Analysis I/README_EN.md

+5-1
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,11 @@ Activity table:
6060
### **SQL**
6161

6262
```sql
63-
63+
SELECT
64+
player_id, MIN(event_date) first_login
65+
FROM
66+
Activity
67+
GROUP BY player_id;
6468
```
6569

6670
<!-- tabs:end -->
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
SELECT
2+
player_id, MIN(event_date) first_login
3+
FROM
4+
Activity
5+
GROUP BY player_id;

0 commit comments

Comments
 (0)