题解 | 商品id数据清洗统计

商品id数据清洗统计

https://www.nowcoder.com/practice/c985ecbd820b46e6bafa858f6600126d

with
t1 as(
    select
        substring_index(order_id,'_',-1) as product_id
    from
        order_log
)
,
t2 as(
    select
        product_id,
        count(product_id) as cnt
    from
        t1
    group by
        product_id
    order by
        product_id
)

select * from t2

全部评论

相关推荐

gelmanspar...:奖学金删掉,自我评价删掉,简历压缩一下,写一页
如果再来一次,你还会学机...
点赞 评论 收藏
分享
评论
点赞
收藏
分享

创作者周榜

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