-
1141. User Activity for the Past 30 Days I mysqlLeetCode_Study_Plan/SQL 2022. 10. 2. 14:14
https://leetcode.com/problems/user-activity-for-the-past-30-days-i/?envType=study-plan&id=sql-i
select activity_date as day, count(distinct user_id) as active_users from activity where datediff('2019-07-27', activity_date) < 30 and datediff('2019-07-27', activity_date) >= 0 group by activity_date;
'LeetCode_Study_Plan > SQL' 카테고리의 다른 글
1729. Find Followers Count mysql (0) 2022.10.02 1693. Daily Leads and Partners mysql (0) 2022.10.02 176. Second Highest Salary mysql (0) 2022.10.02 608. Tree Node mysql (0) 2022.10.02 607. Sales Person mysql (0) 2022.09.30