Hi all,
I wish to know if I have a join query something like this -
Select E.Id,E.Name from Employee E join Dept D on E.DeptId=D.Id
and a subquery something like this -
Select E.Id,E.Name from Employee Where DeptId in (Select Id from Dept)
When I consider performance
which of the two queries would be faster and why
?
Also is there a time when I should prefer
one over the other ?
Sorry if this
is too trivial and asked before but I am confused about it. Also, it would be great if you guys can suggest me tools
i should use to measure performance
of two queries. Thanks a lot!