Interviews4 answers
What is a SELF JOIN in SQL ?
4 Answers
Its a kind of join which join a table to itself.
Vishal JadavPosted Aug 7, 2016, 11:10 PM EDT
http://www.tutorialspoint.com/sql/sql-self-joins.htm
Munesh SharmaPosted May 30, 2016, 9:14 PM EDT
Self join means we are creating join on same table.Suppose we have a table employee
Emp_id,emp_name,manager_id.Now if we want to get emp_name ,manager_name from this table we need to do self join .Select a.emp_name,b.emp_name as managername from employee a,employee b where a.manager_id=b.emp_id
Rajeev PunhaniPosted Jan 27, 2016, 7:04 PM EST
Same table is specified twice with two different aliases in order to match the data within the same table.
Ajeet MishraPosted Sep 7, 2015, 11:21 PM EDT



