, for example, in the figure above: NVL (p.mark, 0)
p.mark is a value of type number. If the mark score is null, the value is 0; if not null, the value of p.mark is **
An NVL function is a null value conversion function
NVL (expression 1, expression 2)
If expression 1 is null, NVL returns the value of expression 2; otherwise, it returns the value of expression 1. The purpose of this function is to convert a null value (NULL) into an actual value. The value of its expression can be numeric, character, or date. But expressions 1 and 2 must have the same data type.
Logarithmic font: NVL (COMM,0);
To character NVL(TO_CHAR(COMM), ‘No Commission’)
NVL for date type (HireDate,’ 31-DEC-99′)
p.mark is a value of type number. If the mark score is null, the value is 0; if not null, the value of p.mark is **
An NVL function is a null value conversion function
NVL (expression 1, expression 2)
If expression 1 is null, NVL returns the value of expression 2; otherwise, it returns the value of expression 1. The purpose of this function is to convert a null value (NULL) into an actual value. The value of its expression can be numeric, character, or date. But expressions 1 and 2 must have the same data type.
Logarithmic font: NVL (COMM,0);
To character NVL(TO_CHAR(COMM), ‘No Commission’)
NVL for date type (HireDate,’ 31-DEC-99′)
Read More:
- SQL Union, union all usage and common errors and Solutions
- This function has none of deterministic, no SQL, or reads SQL data in its error records
- Yield usage in Python
- The usage and difference of atoi() and stoi() functions in C + +
- Cause: java.sql.SQLSyntaxErrorException: You have an error in your SQL syntax; check the
- Raise in Oracle_APPLICATION_Error Usage
- Usage and examples of three important functions of tidyr package in R language: gather, spread and separate
- The function and usage of argc and argv in C language
- The usage of typing.union in Python
- Usage of pause function in MATLAB
- In Python sys.argv Usage of
- svn Key usage violation in certificate has been detected
- JS exception capture: the usage and example analysis of onerror() in window
- The usage of several integer functions in MATLAB (fix, floor, ceil, round)
- “Invalid month” in SQL query
- On the usage of ‘ref.stor.type search’ field in SAP WM movement type
- Memory leak in Windows 8.1 with Killer E2200 and Windows Network Data Usage Monitoring
- Type definition error – one of the causes of type definition errors is WM in Oracle_ Concat function usage
- Spring data JAP SQL error:17059 SQL State:99999
- On set in pandas_ Index and reset_ Usage of index