我想将exist子句转换为以下查询的In子句


SELECT SupplierName
FROM Suppliers
WHERE EXISTS (SELECT ProductName FROM Products 
WHERE Products.SupplierID = Suppliers.supplierID AND Price < 20);

我想将现有子句转换为查询的IN子句。

开始:

SELECT SupplierName
FROM Suppliers
WHERE Suppliers.SupplierID IN (
SELECT Products.SupplierID
FROM Products 
WHERE Price < 20
)

相关内容

  • 没有找到相关文章

最新更新