I have a table with a column of either intergers or NULL, the integers are referencing the primary key of the same table. I'm trying to query and get a result of a column that has names with the primary key of the integers and retains the NULL if present.
CURRENT TABLE
id name manager_id
1 mike 5
2 lisa 3
3 tom NULL
4 andy 3
5 brian NULL
EXPECTED RESULT
id name manager_id
1 Mike Brian
2 Lisa Tom
3 Tom NULL
4 Andy Tom
5 Brian NULL