SELECT LastName, FirstName, Phone
FROM CUSTOMER, SALE, SALE_ITEM, ITEM
WHERE CUSTOMER.CustomerID = SALE.CustomerID
AND SALE.SaleID = SALE_ITEM.SaleID
AND SALE_ITEM.ItemID = ITEM.ItemID
AND ItemDescription LIKE '%Desk Lamp%';
不确定在哪里添加连接
SELECT LastName, FirstName, Phone
FROM CUSTOMER AS C
JOIN SALE AS S ON C.CUSTOMER_ID=S.CUSTOMERID
JOIN SALE_ITEM AS S_ITEM ON S.SALEID=S_ITEM.SALEID
JOIN ITEM AS I ON S_ITEM.ItemID =I.ITEMID
WHERE I.ItemDescription LIKE '%Desk Lamp%';
请尝试这样的事情