Thursday, May 10, 2018

ROUND() function in SQL SERVER


declare @i decimal(9,5),@d decimal(9,5)

set @i=21.4

set @d=21.5

select round(@i,0),round(@d,0)

No comments:

Post a Comment