What is the usage of NVL?

Answers were Sorted based on User's Feedback



What is the usage of NVL?..

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

What is the usage of NVL?..

Answer / surendra

it is used to convert null values to any value

Is This Answer Correct ?    21 Yes 1 No

What is the usage of NVL?..

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

What is the usage of NVL?..

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

What is the usage of NVL?..

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

What is the usage of NVL?..

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 is the usage of NVL?..

Answer / nagendra

to convert null values to actual values

Is This Answer Correct ?    3 Yes 5 No

Post New Answer

More SQL PLSQL Interview Questions

will function return more than one value how

9 Answers   Accenture,


explain commit and rollback in mysql : sql dba

0 Answers  


What are stored procedures in mysql?

0 Answers  


How many types of sql are there?

0 Answers  


What is window clause?

1 Answers   TCS,






Explain how you can copy a file to file content and file to pl/sql table in advance pl/sql?

0 Answers  


what is difference between procedure and function

10 Answers   MCN Solutions, Wipro,


what is sql? : Sql dba

0 Answers  


What is synchronized subquery?

0 Answers  


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.

2 Answers  


How you will create Toad Function?

1 Answers  


What steps server process has to take to execute an update statement?

0 Answers  


Categories