Surister :
Caio Oliveira :
You have there a self relation.
You just have to think about it as it was another table.
Just use a join (left or inner, depends what you need)
SELECT e.code, e.name, b.code, b.name from table_name e
join table_name b on e.boss = b.code