题解 | #21年8月份练题总数#

21年8月份练题总数

http://www.nowcoder.com/practice/b8f30b239b454ed490367b53ea95607d

用户数 根据用户分组 题目总数,?未分组?

select count(did_cnt) , sum(question_cnt) from (select count(device_id) did_cnt,count(question_id) question_cnt from question_practice_detail t where t.date between str_to_date('2021-08-01','%Y-%m-%d') and str_to_date('2021-08-31','%Y-%m-%d') group by device_id) t

group by t.did_cnt

起别名 'Every derived table must have its own alias

稀里糊涂的就过了

全部评论

相关推荐

点赞 评论 收藏
分享
给我发了笔试链接,想着等晚上回去做,结果还没做流程就终止了
伟大的小黄鸭在学习:我猜就是笔试几乎没用,就是用来给用人部门拖时间复筛简历的,可能用人部门筛到你简历觉得不合适就提前挂了
投递小鹏汽车等公司10个岗位
点赞 评论 收藏
分享
评论
点赞
收藏
分享

创作者周榜

更多
牛客网
牛客网在线编程
牛客网题解
牛客企业服务