select cust_name, order_num from Customers c inner join Orders o on c.cust_id=o.cust_id group by cust_name, order_num # 由于是顾客号与订单号一一对应,故该分组也可以不加 order by cust_name;