π§ EXISTS vs IN
π§ Coming soon: NULL semantics, performance notes, and anti-join variants with NOT EXISTS
.
-- Placeholder example
SELECT c.CustomerID
FROM dbo.Customers c
WHERE EXISTS (SELECT 1 FROM dbo.Orders o WHERE o.CustomerID = c.CustomerID);