sql 2 decimal places code example
Example 1: sql decimal to 2 places
CAST(MyNumber AS NUMERIC(18,2))
Example 2: sql limit decimal places
SELECT CAST(ROUND(125.025000, 2) AS NUMERIC(36,2))
returns: 125.03
CAST(MyNumber AS NUMERIC(18,2))
SELECT CAST(ROUND(125.025000, 2) AS NUMERIC(36,2))
returns: 125.03