Introduction
We use self join to connect rows in the same table that have a parent-child relationship. This helps us see how items are linked in a hierarchy.
When you want to find an employee's manager in the same employee table.
When you want to list categories and their parent categories in a product catalog.
When you want to show parts and their sub-parts in a manufacturing list.
When you want to display family trees from a single table of people.