题解 | 商品销售排名

商品销售排名

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


with tiaojian as (
select 
lg.product_id,
type,
product_name,
sum(price) as py,
dense_rank()over(order by sum(price) desc,product_name asc) as pdiff
from user_client_log lg inner join product_info pf on 
lg.product_id=pf.product_id
where
step="select"
group by lg.product_id,type,product_name
)

select 
product_name,
cast(py as signed) as py
from tiaojian
where
pdiff<=2

全部评论

相关推荐

牛客633875330号:投不了,相当于空白简历,建议看看其他人简历上的项目和实习经历再说,。非科班无项目无实习,拿什么投计算机?
点赞 评论 收藏
分享
KPLACE:首先是板面看起来不够,有很多奖,比我厉害。项目要精减,大概详细描述两到三个,要把技术栈写清楚,分点,什么算法,什么外设,怎么优化,不要写一大堆,分点,你写上去的目的,一是让别人知道你做了这个知识点,然后在面试官技术面的时侯,他知道你会这个,那么就会跟你深挖这个,然后就是个人评价改为专业技能
点赞 评论 收藏
分享
评论
1
收藏
分享

创作者周榜

更多
牛客网
牛客企业服务