Now we’ve got two table. One customer table for customerid and their names, One Order tablefor customers’ Id that bought something.
We will find the customers that in the customer table but not in order table.
Method
Use NOT IN.
select Name from Customers
where Id not in
(select CustomerId from Orders order by CustomerId);