本文主要是介绍sql24(Leetcode1141查询近30天活跃用户数),希望对大家解决编程问题提供一定的参考价值,需要的开发者们随着小编来一起学习吧!
代码:
# Write your MySQL query statement belowselect v.activity_date as day, count(distinct(v.user_id)) as active_users
from(select user_id,activity_datefrom Activitywhere activity_date between '2019-06-28' and '2019-07-27'
) as v
group by v.activity_date
这篇关于sql24(Leetcode1141查询近30天活跃用户数)的文章就介绍到这儿,希望我们推荐的文章对编程师们有所帮助!