diff --git a/product_docs/docs/epas/16/reference/sql_reference/03_functions_and_operators/10_conditional_expressions.mdx b/product_docs/docs/epas/16/reference/sql_reference/03_functions_and_operators/10_conditional_expressions.mdx index 6576f646ecc..f467e099057 100644 --- a/product_docs/docs/epas/16/reference/sql_reference/03_functions_and_operators/10_conditional_expressions.mdx +++ b/product_docs/docs/epas/16/reference/sql_reference/03_functions_and_operators/10_conditional_expressions.mdx @@ -177,13 +177,13 @@ bonus = NVL2(emp.commission, emp.commission * 1.1, 0) ``` ## NANVL -The `NANVL` function returns the first of its arguments that is not-a-number(NaN) value. `NANVL` evaluates the first expression. If that expression evaluates to not-a-number value, `NANVL` returns the second expression. If the first expression evaluates to a number value, `NANVL` returns the first expression. The `NANVL` function is useful only for floating-point number of type `BINARY_FLOAT` or `BINARY_DOUBLE`. +The `NANVL` function returns the first of its arguments that is not-a-number (NaN) value. `NANVL` evaluates the first expression. If that expression evaluates to a NAN value, `NANVL` returns the second expression. If the first expression evaluates to a number value, `NANVL` returns the first expression. The `NANVL` function is useful only for floating-point numbers of type `BINARY_FLOAT` or `BINARY_DOUBLE`. ```sql NANVL(expr1,expr2) ``` -This function takes any numeric data type or any non-numeric data type that can be implicitly converted to a numeric data type as arguments. EPAS determines the argument with the highest numeric precedence, implicitly converts the remaining arguments to that data type, and returns that data type. +This function takes any numeric data type or any non-numeric data type that can be implicitly converted to a numeric data type as arguments. EDB Postres Advanced Server determines the argument with the highest numeric precedence, implicitly converts the remaining arguments to that data type, and returns that data type. ### Examples @@ -216,20 +216,20 @@ __OUTPUT__ ## LNNVL -`LNNVL` function provides a concise way to evaluate a condition when one or both operands of the condition may ne null. +The `LNNVL` function provides a concise way to evaluate a condition when one or both operands of the condition might be null. ```sql LNNVL(condition) ``` -It returns `TRUE` if the condition is `FALSE` or `UNKNOWN` and `FALSE` if the condition is `TRUE`. +The function returns `TRUE` if the condition is `FALSE` or `UNKNOWN` and `FALSE` if the condition is `TRUE`. -The `condition` can evaluate any scalar values but cannot be a compound condition containing `AND`, `OR`, or `BETWEEN`. +The condition can evaluate any scalar values but can't be a compound condition containing `AND`, `OR`, or `BETWEEN`. -Use `LNNVL` function: -- in `WHERE` clause of a query. -- in `WHEN` condition in a searched `CASE` expression. -- anywhere a scalar expression appears, even in contexts where the `IS [NOT] NULL`, `AND`, or `OR` conditions are not valid but otherwise be required to account for potential nulls. +Use the `LNNVL` function: +- In the `WHERE` clause of a query. +- In the `WHEN` condition in a searched `CASE` expression. +- Anywhere a scalar expression appears, even in contexts where the `IS [NOT] NULL`, `AND`, or `OR` conditions aren't valid but otherwise are required to account for potential nulls. ### Examples @@ -240,7 +240,7 @@ CREATE TABLE t1 (id INT, col1 INT); INSERT INTO t1 VALUES (10, NULL), (1,1),(2,2), (3,3); ``` -Use `LNNVL` function in SELECT query: +Use the `LNNVL` function in a `SELECT` query: ```sql SELECT * FROM t1 WHERE lnnvl(col1 > 2) ORDER BY id; diff --git a/product_docs/docs/epas/16/reference/sql_reference/03_functions_and_operators/dump_function.mdx b/product_docs/docs/epas/16/reference/sql_reference/03_functions_and_operators/dump_function.mdx index 9b5f853ce1c..47b377bcff7 100644 --- a/product_docs/docs/epas/16/reference/sql_reference/03_functions_and_operators/dump_function.mdx +++ b/product_docs/docs/epas/16/reference/sql_reference/03_functions_and_operators/dump_function.mdx @@ -2,21 +2,21 @@ title: "DUMP function" --- -DUMP function returns a VARCHAR2 value which contain the datatype code, length in bytes, and internal representation of expression. +The DUMP function returns a VARCHAR2 value that contains the datatype code, length in bytes, and internal representation of the expression. ```sql -DUMP(expr[, return_fmt [, start_position [, length ] ] ]) +DUMP(expr[, [, [, ] ] ]) ``` -Where `return_fmt` specifies the format of the any of this return values: -- 8 returns result in octal notation -- 10 returns result in decimal notation -- 16 returns result in hexadecimal notation -- 17 returns each byte printed as a character if and only if it can be interpreted as a printable character in the character set of the compiler. +Where `return_fmt` specifies the format of the any of these return values: +- `8` returns the result in octal notation. +- `10` returns the result in decimal notation. +- `16` returns the result in hexadecimal notation. +- `17` returns each byte printed as a character only if it can be interpreted as a printable character in the character set of the compiler. -The arguments `start_position` and `length` combine to determine which portion of the internal representation to return. The default is to return the entire internal representation in decimal notation. +The arguments `start_position` and `length` combine to determine the portion of the internal representation to return. The default is to return the entire internal representation in decimal notation. -If `expr` is null, then it returns `NULL`. +If `expr` is null, then the function returns `NULL`. ## Examples @@ -64,5 +64,3 @@ __OUTPUT__ Typ=1700 Len=4: 0,128,25,0 (1 row) ``` - -