What is nvl function?

Answers were Sorted based on User's Feedback



What is nvl function?..

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

What is nvl function?..

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

What is nvl function?..

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

What is nvl function?..

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

Post New Answer

More SQL PLSQL Interview Questions

How toimport .dmp file in lower version of oracle from higher version ?

4 Answers   TCS,


what is collation? : Sql dba

0 Answers  


what is bcp? When is it used?

0 Answers  


What is the Difference between Procedure and Function.Can we call a Function in a DML?

2 Answers   TCS,


How are sql commands classified?

0 Answers  






How will you a activate/deactivate integrity constraints?

2 Answers  


Is nosql faster than sql?

0 Answers  


Which clause of an UPDATE statement allows you to affect only certain rows of a table? 1. The WHERE clause 2. The SET clause 3. The ROWS AFFECTED clause 4. The ORDER BY clause

6 Answers   HCL,


Can we insert in view in sql?

0 Answers  


what is difference between stored procedures and application procedures,stored function and application function?

1 Answers  


What is a procedure in pl sql?

0 Answers  


Table 1: col1 Timestamp ---------------- 01-mar-2012 11:12:46 Table 2: col2 Timestamp -------------------- 01-mar-2012 11:12:10 01-mar-2012 11:11:23 Write a query to display a row with table2 col2 value less than tabl1 col1 value. Maximum timestamp value previous to table1 col1 value. Display a result as: Col1 col2 ----- ----- 01-mar-2012 11:12:46 01-mar-2012 11:12:10

0 Answers  


Categories