Home Forums Article Discussions Article Discussions by Author Discuss content posted by Vivek Johari SQL Joins RE: SQL Joins
MVDBA (Mike Vessey)
SSC-Insane
Points: 21797
More actions
August 14, 2009 at 3:57 am
#1039225
left outer self join - easy
show me all employees and their managers
include all employees that do not have a manager
select e1.*,e2.name from employee e1 left outer join employee e2 on e1.managerid=e2.employeeid
MVDBA