SQL · Joins and set operations

self join

Joins a table to itself, usually through two aliases.

Syntax
from employee e join employee m on …

Example

Open in the lab

More in this group

cross join except full outer join inner join intersect left join right join union

Learn this in the course

Reference pages are the quick answer. The course explains the why, shows the full example and ends with a challenge.

Open the course