I have a query:
select *
from Sales S inner join Customers C
on S.Cust_Id = C.Cust_Id
There is a non clustered index on Sales. Sales and Customers table just carry some sample test data.
Execution plan is showing 2 nested loops and a RID loop up.
Why is it using 2 nested loop and what is RID look up used in this case?
Please help..
Thanks,
Kirti