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 |
Write a query to find the employees from EMP table those who have joined in Monday. (there is a column as hiredate which is a date column i.e values are like 03-DEC-81)
How can we Get the Updated Rows? ie, There is 100s of Rows i updated the Rows who have salary 5000. then i want to select the Updated Rows. How can we achieve it?
How does an execution block start and end in pl sql?
I WANT INFORMATION ABOUT SAS SOFTWARE USING FINANCIAL COMPANIES LIST, PLESE GIVE ME DETAILS ABOUT
explain primary keys and auto increment fields in mysql : sql dba
what is global variable in pl/sql
What cursor type do you use to retrieve multiple recordsets?
17 Answers Apollo, CTS, IonIdea, Microsoft, Oracle, TCS, Vmoksha, Wipro,
how to create object in plsql
in sql table following column r there i want find 1st paid ,2nd paid,3rd paid date for same |service_type|date |vehicle_no| |------------|------|_---------| |paid |23 jan|MH12H2007 | | | | | |paid |26 feb|MH12H2007 | | | | | | | | | |paid |28 mar|MH12H2007 | i want o/p like below vehicle no| 1st paid date | 2nd paid date|3rd paid |latest paid date| pls help me out
What is the requirement of self-join?
How do I run a program in pl sql?
What are few of the schema objects that are created using PL/SQL?
Oracle (3259)
SQL Server (4518)
MS Access (429)
MySQL (1402)
Postgre (483)
Sybase (267)
DB Architecture (141)
DB Administration (291)
DB Development (113)
SQL PLSQL (3330)
MongoDB (502)
IBM Informix (50)
Neo4j (82)
InfluxDB (0)
Apache CouchDB (44)
Firebird (5)
Database Management (1411)
Databases AllOther (288)