Quantcast
Channel: SQLServerCentral » SQL Server 2014 » Development - SQL Server 2014 » Latest topics
Viewing all articles
Browse latest Browse all 3145

Which of the 2 queries is better in terms of performance

$
0
0
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

Viewing all articles
Browse latest Browse all 3145

Trending Articles