self join example

Solutions on MaxInterview for self join example by the best coders in the world

showing results for - "self join example"
Maximilian
01 Jan 2020
1SELECT
2    e.first_name + ' ' + e.last_name employee,
3    m.first_name + ' ' + m.last_name manager
4FROM
5    sales.staffs e
6INNER JOIN sales.staffs m ON m.staff_id = e.manager_id
7ORDER BY
8    manager;