This will gives the first non-null string.
    Syntax: coalesce (strng1, string2, string3
… stringn)       
    Ex:
        
SQL> select coalesce('a','b','c'), coalesce(null,'a',null,'b') from
dual;
COALESCE COALESCE
-----------   -----------
       a                  a
 
 
No comments:
Post a Comment