開始使用免費開始

內部連接(Inner joins)

來開始把多個資料表結合起來吧!業務支援部門接到一位顧客來電,想要聯絡先前協助她購買的員工。你決定幫忙找出所需資訊。你知道這位顧客的名字是 Mark Philips

要取得該員工的姓名,你需要同時使用 CustomerEmployee 兩個資料表。讓我們確保這位顧客能聯絡到正確的員工。

本練習屬於課程

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 = ___
編輯並執行程式碼