Thanks for the help everyone. I should have mentioned it's mysql I am using.
PHV's answer works straight away.
IsNull(e.mgr_id,""), gives an error on mysql - is there an equivalent to use?
Thanks again
Hi there
I am new to SQL. I am making a simple employee phonebook with tables employee, job, and department. (Employee is recursive in that it also stores the managers info.)
My statement works as long as mgr_id is not null (employee table). When it is null an empty result set is returned - but...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.