视星等无穷
视星等无穷
全部文章
题解
归档
标签
去牛客网
登录
/
注册
视星等无穷的博客
全部文章
/ 题解
(共2篇)
题解 | #有取消订单记录的司机平均评分#
1.筛选出有过退单记录的司机 select driver_id from tb_get_car_order where start_time is null 2.统计分数平均,保留一位小数 round(avg(grade),1) 3.汇总列 ifnull(driver_id,'总体') wit...
Mysql
数据库
2022-04-20
2
421
题解 | #每天的日活数及新用户占比#
1.先得到用户活跃表(用union去重) select uid, date(in_time) dt from tb_user_log union select uid,date(out_time) dt from tb_user_log 2.得到每名用户最早出现的时间 select uid,mi...
Mysql
数据库
2022-04-11
3
340