ค้นหาชื่อแพทย์ทั้งหมดและชื่อแผนกหลักในเครือ ไม่จำเป็นต้องใช้ตารางทั้งหมด
Find the names of all physicians and their primary affiliated departments' names.It is not neccessary to use all the tables.
 department:  (name [ VARCHAR ] DepartmentID [ VARCHAR) ]
SELECT T1.name, T3.name FROM physician AS T1 JOIN affiliated_with AS T2 ON T1.EmployeeID = T2.physician JOIN department AS T3 ON T2.department = T3.DepartmentID WHERE T2.PrimaryAffiliation = 1