I am trying to learn oracle sql and below is my query. I wanted to print everyone's manager and if someone doesn't a manager then it should return "No One".
Problem: I am getting a blank statement instead of "No One". Any help?
SELECT NVL(m.first_name || ' '
|| m.last_name, 'No One') || ' supervises '
|| w.first_name || ' ' || w.last_name
FROM employees w, employees m
WHERE w.manager_id = m.employee_id(+);
NVL(M.FIRST_NAME||''||M.LAST_NAME,'NOONE')||'SUPERVISE
------------------------------------------------------
James Smith supervises Ron Johnson
Ron Johnson supervises Susan Jones
Ron Johnson supervises Fred Hobbs
supervises James Smith