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 |
will function return more than one value how
explain commit and rollback in mysql : sql dba
What are stored procedures in mysql?
How many types of sql are there?
What is window clause?
Explain how you can copy a file to file content and file to pl/sql table in advance pl/sql?
what is difference between procedure and function
10 Answers MCN Solutions, Wipro,
what is sql? : Sql dba
What is synchronized subquery?
Hi Guys, I have a situation where I need to access the column values from rowtype variable. However, the column names are dynamic. below is sample code: declare Cursor c1 is select * from emp; Cursor c2 is select column_name from xyztable; v_c2 c2%rowtype; v_str varchar2 v_value varchar2(200); begin for rec in c1 loop open c2;---this cursor has column names like EMPLOYEE_ID, FIRST_NAME, LAST_NAME etc. loop fetch c2 into v_c2; exit when c2%notfound; /* now lets say i want to access value of LAST_NAME from cursor c1, so I am writing below code, however it does not work as expected */ v_str:= 'rec.'|| v_c2.column_name; -- this will give me string like "rec.EMPLOYEE_ID" v_value:=v_str; end loop; end loop; end; / Plz help ASAP.Thanks.
How you will create Toad Function?
What steps server process has to take to execute an update statement?