摘要:
有日志如下,请写出代码求得所有用户和活跃用户的总数及平均年龄。(活跃用户指连续两天都有访问记录的用户) 日期 用户 年龄 11,test_1,23 11,test_2,19 11,test_3,39 11,test_1,23 11,test_3,39 11,test_1,23 12,test_2,1 阅读全文
posted @ 2020-08-31 20:09
浪子逆行
阅读(487)
评论(0)
推荐(0)
摘要:
有一个5000万的用户文件(user_id,name,age),一个2亿记录的用户看电影的记录文件(user_id,url),根据年龄段观看电影的次数进行排序? 1 --建表 2 --用户表 3 drop table if exists test_four_log; 4 create table t 阅读全文
posted @ 2020-08-31 20:04
浪子逆行
阅读(477)
评论(0)
推荐(0)

浙公网安备 33010602011771号