题解 | 商品销售排名

商品销售排名

https://www.nowcoder.com/practice/79c6c3d6d66946f79387bca73c0a29f4

select 
t2.product_name
,count(*) * t2.price total
from user_client_log t1
left join product_info t2
on t1.product_id = t2.product_id
where t1.pay_method != ""
group by t1.product_id ,t2.product_name
order by total desc

全部评论

相关推荐

点赞 评论 收藏
分享
评论
点赞
收藏
分享

创作者周榜

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