题解 | 商品id数据清洗统计
商品id数据清洗统计
https://www.nowcoder.com/practice/c985ecbd820b46e6bafa858f6600126d
select
substring_index(order_id,'_',-1) as product_id,
count(*) as cnt
from order_log
group by product_id
order by cnt desc;
substring_index进行字符串的切割,拿到product_id,对product_id进行分组计数
拼多多集团-PDD成长空间 1356人发布
查看12道真题和解析