top button
Flag Notify
    Connect to us
      Site Registration

Site Registration

Oracle: explain NVL function?

+2 votes
193 views

I know the nvl function only allows the same data type (i.e. number or char or date nvl(comm, 0)), if commission is null then the text “Not Applicable” want to display, instead of blank space. How do I write the query?

posted Mar 12, 2015 by Suchithra

Share this question
Facebook Share Button Twitter Share Button LinkedIn Share Button

1 Answer

0 votes
 
Best answer
SQL> select nvl (to_char (comm.),'NA') from EMP; 

Output:

NVL (TO_CHAR (COMM),'NA')

NA
300
500
NA
1400
NA
NA

answer Mar 13, 2015 by Arun Gowda
...