My Solution with NOT EXISTS


  • 0
    L

    SELECT Name AS Customers
    FROM Customers
    WHERE NOT EXISTS
    (SELECT CustomerID FROM Orders WHERE Customers.ID=Orders.CustomerID)


Log in to reply
 

Looks like your connection to LeetCode Discuss was lost, please wait while we try to reconnect.