Table of Contents

Search

  1. About the Data Vault SQL Reference
  2. Introduction to SQL Reference for Informatica Data Vault
  3. Date and Time Arithmetic
  4. WHERE Clauses
  5. UNION Operator
  6. Parameterized Query
  7. Functions

Data Vault SQL Reference

Data Vault SQL Reference

ROUND

ROUND

A math function that returns the value produced by rounding
value-expression1
to
value-expression2
digits to the right of the decimal point. A negative number of digits indicates rounding to the left of the decimal point. Note that
value-expression1
can be any numeric value, but
value-expression2
must be an integer value.

ROUND Syntax

ROUND (double value-expression1, integer value-expression2 )

ROUND Example

Input
Output
234.56789, 2
234.57
234.56789, -2
200
CREATE TABLE num_table (col1 DEC(10, 2)); INSERT INTO num_table VALUES (234.56789); 1 row affected SELECT ROUND(col1, 2) FROM num_table; 1 row selected 1 ------------- 234.57 SELECT ROUND(col1, -2) FROM num_table; 1 row selected 1 ------------- 200.00

0 COMMENTS

We’d like to hear from you!