题解 | 查询订单

查询订单

https://www.nowcoder.com/practice/5ae7f48dc94f4a76b0ade40b70caf308

select 
order_id,customer_name,order_date
from orders o
inner join customers c on o.customer_id=c.customer_id
where (o.customer_id,order_date) in 
(select
customer_id,max(order_date)
from orders
group by customer_id)
order by customer_name;

全部评论

相关推荐

优秀的大熊猫在okr...:多益:此贼,必有同谋,按律,该当连坐!
你不能接受的企业文化有哪...
点赞 评论 收藏
分享
评论
16
收藏
分享

创作者周榜

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