INNER JOIN
让我们开始把多张表的数据组合起来吧!销售支持部门接到一位客户来电,她想联系当时协助她购买的员工。您决定帮他们找到所需信息。您知道这位客户名叫 Mark Philips。
要获取该员工的姓名,您需要同时使用 Customer 表和 Employee 表的数据。让我们确保这位客户能联系到正确的员工。
本练习是课程的一部分
Oracle SQL 入门
交互式实操练习
通过完成这段示例代码来试试这个练习。
-- Select the customer's and employee's first and last names
SELECT c.FirstName, ___, ___, e.LastName
-- Join the Customer and the Employee tables
FROM Customer c ___ ___ Employee ___
-- Complete the common joining column
___ c.SupportRepId = ___