Real life Example of SELF Join

Fill In The Blank
Views 1398

Answer:

Have you ever thought of a need to join a table with itself. Consider tblEmployees table shown below.

Self Join in SQL
Figure:

Write a query which gives the following result.

Self Join in SQL
Figure:

Self Join Query:
A MANAGER is also an EMPLOYEE. Both the, EMPLOYEE and MANAGER rows, are present in the same table. Here we are joining

Related Articles:

This section is dedicated exclusively to Questions & Answers. For an in-depth exploration of SQL, click the links and dive deeper into this subject.

Join Our telegram group to ask Questions

Click below button to join our groups.