In New to NetSuite | SuiteQL Overview and New to NetSuite | Understanding SuiteQL Syntax articles, we explored the fundamental concepts, capabilities, and structure of SuiteQL.
SuiteQL Syntax for Advanced Queries goes beyond simple selections and joins to deliver robust, flexible, and analytical queries within database. SuiteQL’s capabilities are similar to standard SQL (with some NetSuite-specific constraints). One of these advanced features is NVL.
The NVL function that replaces NULL with a specified value.
Syntax
NVL(expression, replacement_value)
- If expression is not NULL, it returns expression.
- If expression is NULL, it returns replacement_value.
Example 1: Replace NULL text
SELECT
entityid,