select c.custid,c.companyname from sales.MyCustomers c left join sales.MyOrders o on c.custid=o.custidwhere o.orderid is nullOrselect custid,companyname from sales.MyCustomers where custid not in (select custid from sales.MyOrders)Hard to see from Query Plan. First query has hash joinThanksMohsin Ladha
↧