题解 | 短视频直播间晚上11-12点之间各直播间的在线人数

select
a.room_id room_id,
room_name,
count(distinct user_id) user_count
from 
(select distinct
user_id,
room_id,
in_time,
out_time
from user_view_tb 
where (in_time between '23:00:00' and '24:00:00')
or (out_time between '23:00:00' and '24:00:00')
) a 
left join room_info_tb b
on a.room_id = b.room_id
group by 1,2
order by 3 desc

全部评论

相关推荐

菜鸡29号:根据已有信息能初步得出以下几点: 1、硕士排了大本和大专 2、要求会多语言要么是招人很挑剔要么就是干的活杂 3、给出校招薪资范围过于巨大,说明里面的薪资制度(包括涨薪)可能有大坑
点赞 评论 收藏
分享
Beeee0927:正确的建议
点赞 评论 收藏
分享
评论
点赞
收藏
分享

创作者周榜

更多
牛客网
牛客企业服务