183. 从不订购的客户
# 498ms select c.Name as Customers from Customers c left join Orders o on o.CustomerId = c.Id where o.Id is null; # 532ms select c.Name as Customers from Customers c where not exists (select 1 from Orders o where o.CustomerId = c.Id); # 455ms select c.Name as Customers from Customers c where c.Id not in (select distinct o.CustomerId from Orders o);

 ------------------------- A little Progress a day makes you a big success...   ----------------------------
------------------------- A little Progress a day makes you a big success...   ----------------------------
 
                    
                     
                    
                 
                    
                
 
 
                
            
         
         浙公网安备 33010602011771号
浙公网安备 33010602011771号