Which one of the following queries is prefered? And why? They accomplished exactly the same thing.
select e1.Name from Employee e1, Employee e2
where e1.ManagerId = e2.Id and e1.Salary > e2.Salary
or
select e1.Name from Employee e1 join Employee e2
on e1.ManagerId = e2.Id and e1.Salary > e2.Salary
I have heard using JOIN
is better but it seems to be slightly slower.