- 博客(1)
- 收藏
- 关注
原创 HQL有日志如下,请写出代码求得所有用户和活跃用户的总数及平均年龄。(活跃用户指连续两天都有访问记录的用户)日期 用户 年龄 数据集如下
select sum(user_total_count), sum(user_total_avg_age), sum(twice_count), sum(twice_count_avg_age) from (select 0 user_total_count, 0 user_total_avg_age, count(*) twice_count, cast(sum(age)/count(*) as decimal(10,2)) ...
2021-07-30 19:52:15
491
2
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人