My simple solution


  • 0
    L
    select Name as Customers from Customers
    where Id not in(select distinct(CustomerId) from Orders);

Log in to reply
 

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