USE nvl for null values in DB

kalit sikka replied to Saurabh ...... at 06-Sep-08 05:40
NVL(eExpression1, eExpression2)
eExpression1, eExpression2
NVL( ) returns eExpression2 if eExpression1 evaluates to a null value. NVL( ) returns eExpression1 if eExpression1 is not a null value. eExpression1 and eExpression2 may be any data type. NVL( ) returns .NULL. if both eExpression1 and eExpression2 both evaluate to the null value.

Example: SELECT phone_number, NVL(phone_number, 'MISSING') FROM employees;

Biography
kalit

Click here to sign in and reply. You could earn money via our $500 contest just for being helpful.
  Insert NULL into table - Saurabh ......  06-Sep-08 05:20 5:20:03 AM
      try this... - Vasanthakumar D  06-Sep-08 05:29 5:29:55 AM
      USE nvl for null values in DB - kalit sikka  06-Sep-08 05:40 5:40:19 AM
      stored procedure - sundar k  06-Sep-08 05:53 5:53:37 AM
      Use this - Atul Shinde  06-Sep-08 06:50 6:50:43 AM
          this is not good.... - Vasanthakumar D  06-Sep-08 07:10 7:10:15 AM
              He is no one else but... - Sanjay Verma  06-Sep-08 08:47 8:47:46 AM
              wut - Rafael Cruz  06-Sep-08 04:49 4:49:58 PM
View Posts