I have table which have id name and manager id
id name manager_id
1 myName 4
2 alex 3
3 brain 2
4 someone 1
Now i have to write the query which display the result like that
myname someone
alex brain
brain alex
someone myname
Means we have to display name and mnager Name according to the Id