| 粒度 | 分钟或秒 |
|---|---|
| 标签 | 时段分桶 |
| 使用 | 订单时段分布分析 |
时段分布
时段分布
SELECT t.time_band, count(1) order_cnt
FROM fact_order f JOIN dim_time t ON f.time_key = t.time_key
WHERE f.dt = '2026-10-11'
GROUP BY t.time_band;时段分桶规则要业务确认后固定,避免晚高峰定义在不同报表里不一致。
分析订单时段分布、配送时长等场景时,使用分钟级时间维(含时段标签:早高峰/午间/晚高峰),与日期维可分可合。
| 粒度 | 分钟或秒 |
|---|---|
| 标签 | 时段分桶 |
| 使用 | 订单时段分布分析 |
SELECT t.time_band, count(1) order_cnt
FROM fact_order f JOIN dim_time t ON f.time_key = t.time_key
WHERE f.dt = '2026-10-11'
GROUP BY t.time_band;