What is nvl function?
Answers were Sorted based on User's Feedback
Answer / raveendran
In Oracle/PLSQL, the NVL function lets you substitute a
value when a null value is encountered.
The syntax for the NVL function is:
NVL( string1, replace_with )
string1 is the string to test for a null value.
replace_with is the value returned if string1 is null.
Is This Answer Correct ? | 20 Yes | 2 No |
Answer / the superstar rajnikanth
NVL(F,E)
if F is null,it returns expression E.F can be of any type.
the type of E should be the same as that on the left-hand side.
Is This Answer Correct ? | 4 Yes | 0 No |
Answer / shivaindu
In Oracle/PLSQL, the NVL function lets you substitute a
value when a null value is encountered.
The syntax for the NVL function
-------------------------------
NVL( string1, replace_with )
Example #1:
----------
select NVL(supplier_city, 'n/a' or ‘0’)
from suppliers;
Is This Answer Correct ? | 1 Yes | 0 No |
Answer / dinesh kumar
Converts Null value to Absolute for calculation.
Ex : nvl(commission,0) returns 0 when commission is null.
Is This Answer Correct ? | 1 Yes | 0 No |
What are the different schemas objects that can be created using pl/sql?
can i create trigger on synonym is it possible or not please help me
what is the different between unique+not null & primary key,
Dear All, Question for this Week Find out possible error(s) (either at compile time or at runtime) in the following PL/SQL block. State the reason(s) and correct the errors. Declare Cursor C1 is select ename, sal, comm from emp; Begin For i in C1 Loop If i.comm between 299 and 999 then Dbms_output.put_line(i.Ename || ‘ ** Good Commission’); Elsif i.comm > 999 then Dbms_output.put_line(i.Empno || ‘ ** Very Good Commission’); close C1; Else Dbms_output.put_line(i.Ename || ‘ ** ’ ||nvl(i.comm,‘O’)); End if; End Loop; End;
What are the default Oracle triggers??
What are the two parts of design view?
display null value rows with out using null function?
Which one is better subquery or joins?
what is difference between delete and truncate commands? : Sql dba
How do I view a view in sql?
What is mdf ldf and ndf?
How do I upgrade sql?