牛客200031181号
牛客200031181号
全部文章
分类
归档
标签
去牛客网
登录
/
注册
牛客200031181号的博客
全部文章
(共17篇)
题解 | 各城市最大同时等车人数
with t as( select r.uid, city,event_time,start_time from tb_get_car_record r join tb_get_car_order o on r.order_id = o.order_id where date_format(even...
2025-08-07
0
24
题解 | 工作日各时段叫车量、等待接单时间和调度时间
# # 按照period分组 with t as( select o.order_id, event_time, end_time, start_time, finish_time,order_time, case when '07:00:00' <= time(event_tim...
2025-08-03
0
28
题解 | 国庆期间近7日日均取消订单量
with t as ( select date(order_time) dt, count(mileage) 'day_complete', count(*) - count(mileage) 'day_cancle' from tb_get_car_re...
2025-07-30
0
30
题解 | 每个城市中评分最高的司机信息
with t as ( select city , driver_id, avg_grade,avg_order_num, avg_mileage,rank()over(partition by city order by avg_grade desc) 'rk' from ( ...
2025-07-28
0
26
题解 | 店铺901国庆期间的7日动销率和滞销率
# 由于窗口函数不能用distinct,所以在子查询中,通过timestampdiff去记录近七天有销售的distinct 商品种数 select dt, round(cnt/total_product, 3) 'sale_rate', round(1 - cnt/tota...
2025-07-27
0
39
题解 | 某店铺的各商品毛利率及店铺整体毛利率
with tmp as ( select d.product_id, sum((price * cnt)) total_price, sum(cnt * in_price) sum_in_price from tb_order_detail d inner join tb_product_info...
2025-07-20
0
24
题解 | 每天的日活数及新用户占比
1. 合并in_ime 和 out_time 获得用户日志,UION 将用户的 in_time 和 out_time 转为日期格式,去重后得到每日活跃用户。2.将用户日志与用户注册时间(min(in_time))进行合并,并通过if关键字判断当日活跃日期是否为注册日期3计算DAU和新用户占比:根据日...
2025-07-18
0
34
首页
上一页
1
2
下一页
末页