是每个供应商的名称,包括每个仓库的位置以及该供应商提供的产品数量以及该仓库的库存
答案 0 :(得分:0)
这些表应该连接在一起,然后应该使用where子句来按销售代表Jim Burns过滤。
select c.name, w.location
from Salesrep s
join Warehouse w
on s.Rep_No = w.Rep_No
join Customer c
on w.Warehouse_No = c.Warehouse_No
where s.Name = 'Jim Burns'
答案 1 :(得分:0)
SELECT
c.Name,
w.Location
FROM salesrep as s
LEFT JOIN warehouse as w ON w.Rep_No = s.Rep_No
LEFT JOIN Customer as c ON c.Warehouse_No = w.Warehouse_No
WHERE s.Name = 'Rep Jim Burns';