There is the first table (ocenka) which contains the ID of the employee and his ID. There is a second table (sotr) which contains the names of these people. This is what I did, but I do not understand how to expand to the withdrawal of the Surname and the employee and his manager.
SELECT ocenka.id_sotr, sotr.fio FROM ocenka, sotr Where ocenka.id_sotr=sotr.id