🤔 문제 분석
1) Write an SQL query to report the first login date for each player.
💡 풀이
SELECT player_id, min(event_date) AS first_login
FROM Activity
GROUP BY player_id
'코딩테스트 > 리트코드 SQL' 카테고리의 다른 글
[리트코드/SQL] 26. Find Total Time Spent by Each Employee (1741) (0) | 2022.12.21 |
---|---|
[리트코드/SQL] 25. The Latest Login in 2020 (1890) (0) | 2022.12.18 |
[리트코드/SQL] 23. Customer Placing the Largest Number of Orders (586) (0) | 2022.12.18 |
[리트코드/SQL] 22. Find Followers Count (1729) (0) | 2022.12.18 |
[리트코드/SQL] 21. Daily Leads and Partners (1693) (0) | 2022.12.18 |
댓글