Function to return yes or no
647768Jul 9 2008 — edited Jul 9 2008Good people please help;
I would like to write a function that checks a userid and returns "Yes" if the user is an inspector and returns "No" if the user is not an inspector. I want to use DECODE but have no idea how to go about it since I am new to oracle and writing functions in general.
Thanks in advance.