题解 | #对顾客ID和日期排序#

对顾客ID和日期排序

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

select
cust_id,
order_num
from
(
select
cust_id,
order_num,
rank() over(
partition by cust_id
order by
order_date desc
)
from
Orders
) as j
#后面的秋招会越来越卷吗#
全部评论
这样子写cust_id没能升序排列把
点赞 回复 分享
发布于 2023-03-07 11:13 北京

相关推荐

评论
点赞
收藏
分享

创作者周榜

更多
牛客网
牛客企业服务