Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SQL

no customers ordered

SELECT name AS Customers
FROM Customers AS c
LEFT JOIN Orders AS o
ON c.Id = o.CustomerId
WHERE o.CustomerID IS NULL;


select customers.name as 'Customers'
from customers
where customers.id not in
(
    select customerid from orders
);
Source by leetcode.com #
 
PREVIOUS NEXT
Tagged: #customers #ordered
ADD COMMENT
Topic
Name
7+8 =