![](https://img-blog.csdnimg.cn/20201014180756925.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
数据库
文章平均质量分 56
sdfsdfsdfgfgh
这个作者很懒,什么都没留下…
展开
-
数仓实习遇到的问题
sql 用法 with用法 https://blog.csdn.net/qq_36617521/article/details/55256382 https://blog.csdn.net/weixin_41600552/article/details/82958942 convert() https://www.runoob.com/sql/func-convert.html cube和rollup,grouping https://www.cnblogs.com/zzhangyuhang/原创 2021-12-28 16:10:50 · 103 阅读 · 0 评论 -
hivesql与业务解决思路
查看每个城市每天完成订单数,取消订单数,下单订单数,下单用户数 select city_id, sum(case when order_status=5 then 1 else 0 end) as cnt_ord_succ_d, sum(case when order_status=3 then 1 else 0 end) as cnt_ord_cacel_d, sum(1) as cnt_ord_d, count(原创 2021-12-28 16:07:57 · 112 阅读 · 0 评论