Interviews6 answers
What is Self Join?

Ankur Jain
Posted Aug 18, 2014, 5:02 AM EDT6 Answers
A self-join is a query in which a table is joined (compared) to itself. Self-joins are used to compare values in a column with other values in the same column in the same table. One practical use for self-joins: obtaining running counts and running totals in an SQL query.
Munesh SharmaPosted May 30, 2016, 10:24 PM EDT
Simply we can say join means join and self join means A table join with itself i.e called Self Join.
Vijay KumarPosted Sep 5, 2015, 11:12 PM EDT
Joining to iteself is nothing but self join.
Ex:
Empno Mgr
1 2
2 3
3 4
In the above for empno 1, empno 2 is manager.
To extract this type of data we use self joins.
Sreekanth ReddyPosted Jul 10, 2015, 10:38 PM EDT
a table join with it self is called as self join
Rakesh KalluriPosted Dec 3, 2014, 8:29 PM EST
A self join involves a relationship with only one table.
Akhil GargPosted Sep 14, 2014, 8:54 AM EDT
A self join can be of any type, as long as the joined tables are the same. A self join is rather unique in that it involves a relationship with only one table.
Ankur JainPosted Aug 18, 2014, 5:02 AM EDT




