What is the usage of NVL?
Answers were Sorted based on User's Feedback
Answer / shailesh
When we want to handle the null value of any column then we
use nvl function.
Is This Answer Correct ? | 27 Yes | 1 No |
Answer / surendra
it is used to convert null values to any value
Is This Answer Correct ? | 21 Yes | 1 No |
Answer / gayathri
NVL function is used to replace the null value by another
value
The syntax for the NVL function is:
NVL( value_in, replace_with )
replace_with is the value that is returned if value_in has
a null value.
Is This Answer Correct ? | 17 Yes | 0 No |
Answer / winnie
In NVL function , it allows to replace with a value when a
null value is encountered.
The syntax is
SELECT NVL(EMP_NAME,'ABC') FROM EMP;
Is This Answer Correct ? | 15 Yes | 0 No |
Answer / goutam
nvl(expr1,expr2)
if expr is null
expr is the converted value.
nvl(name,'not known')
name is null
then it show not known
Is This Answer Correct ? | 11 Yes | 1 No |
Answer / manoranjan sethy
NVL stands for not a value.
Where ever value is not found nvl will convert column and expression as a value
Is This Answer Correct ? | 0 Yes | 0 No |
What are local and global variables and their differences?
What are triggers and its types?
a. Can you delete data from a View. b. If Yes, can you delete it if there are multiple tables c. If No, can you delete if there is single source table which is joining.
SELECT ROUND(TRUNC(MOD(1600,10),-1),2) FROM dual;
What is pl sql block in dbms?
What is composite primary key in sql?
what is an alias command? : Sql dba
What is string data type in sql?
How global cursor can be declare with dynamic trigger ?
What does joining a thread mean?
How to display the contents of a current record fetched in a reference cursor?
Can a primary key be a foreign key?