题解 | #2021年11月每天的人均浏览文章时长#
2021年11月每天的人均浏览文章时长
https://www.nowcoder.com/practice/8e33da493a704d3da15432e4a0b61bb3
select dt,round(sum(date_diff)/count(distinct(uid)),1) as avg_view_len_scan from( select uid,timestampdiff(second,in_time,out_time) date_diff,date_format(in_time,'%Y-%m-%d') dt from tb_user_log where in_time like '2021-11%' and artical_id != 0 )a group by dt order by avg_view_len_scan
还可以~
#23届找工作求助阵地##牛客创作赏金赛##软件开发薪资爆料#