Customers Who Never Order

Find all customers from the Customers table who never placed an order. The Orders table links each order to a customer through the customerId field. Return customer names who have no matching entries in the Orders table.

Constraints

  • The Customers table contains unique customer id entries.
  • The Orders table contains unique order id entries.
  • customerId in Orders is a foreign key to id in Customers.
Saving… · 2 lines
class Solution:
def customersWhoNeverOrder(self, customers: List[List[int]], orders: List[List[int]]) -> List[str]:
Console

Click Run to execute sample tests.