show-notice
hide-notice

Tuesday, 6 August 2013

ROUND() Function in Sql Server


Introduction:

The ROUND() function is used to round a numeric field to the number of decimals specified.
 
Syntax:
SELECT ROUND(column_name,decimals) FROM table_name;
Example:
SELECT ProductName, ROUND(Price,0) AS RoundedPrice
FROM product_tb; 


SHARE THIS POST   

0 comments :

Post a Comment

Design by Gohilinfotech | www.gohilinfotech.blogspot.com