round of sql code example
Example 1: sql limit decimal places
SELECT CAST(ROUND(125.025000, 2) AS NUMERIC(36,2))
returns: 125.03
Example 2: round in sql
SELECT ROUND (commission_pct, 0)
From employees;
SELECT CAST(ROUND(125.025000, 2) AS NUMERIC(36,2))
returns: 125.03
SELECT ROUND (commission_pct, 0)
From employees;