题解 | #返回顾客名称和相关订单号#

返回顾客名称和相关订单号

http://www.nowcoder.com/practice/7e7bc361db6a4cb6aa35eefccfe75364

Solution 1:

SELECT a.cust_name,b.order_num FROM Customers a,Orders b WHERE a.cust_id=b.cust_id ORDER BY a.cust_name;

Solution 2:

SELECT a.cust_name,b.order_num FROM Customers a INNER JOIN Orders b ON a.cust_id=b.cust_id ORDER BY a.cust_name;

全部评论

相关推荐

点赞 评论 收藏
分享
LastWh1spe...:ssob真有些人和那个没睡醒一样
点赞 评论 收藏
分享
评论
点赞
收藏
分享

创作者周榜

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