select cust_id,order_num from Orders    #  搜索顾客id和订单数量 
order by cust_id asc,order_date desc       # 先按id排序,再按日期排序
# 一开始思路有些偏误,先分组再排序了