Hi i have two tables Person (IDPerson, name, surname) and Teacher(IdPerson, superior(witch is in idPerson)) and i have to create MSSQL query which will give me Teacher name, surname and his superior name and surname. I have no Idea how to add second select to query:
Select os.name+ ' ' + os.surname as 'teacher',
osb.name+ ' ' + osb.surname as 'superior' from Person os
inner join Teacher d on os.IdPerson=d.IdPerson
inner join Teacher dt on osb.IdOsoba=d.Podlega; (how to add second Person osb ?)
I know it's wrong but i have no idea how to do it correct. Please help.