What is a self join?

SQL joins · Freshers

Model answer

Joining a table to itself using two aliases, for example finding each employee's manager: SELECT e.name, m.name FROM employees e LEFT JOIN employees m ON e.manager_id = m.id.

Learn this topic

SQL JOINs: INNER JOIN and LEFT JOIN Explained in the course SQL for Beginners: Learn Databases Step by Step.

Sign in to add your own answer.

More questions