Now if we need to get the name of the Employee and his Manager name for each employee in the Employee Table. Then we have to Join Employee Table to itself as Employee and his Manager data is present in this table only as shown in the below query:
Теперь, если нам нужно получить имя сотрудника и его менеджера для каждого из сотрудников в таблице Employee, мы должны сджойнить таблицу Employee саму на себя, так как информация о сотрудниках и менеджерах содержится только в таблице Employee, что можно наблюдать в запросе ниже: