Thursday, September 27, 2012

SQL Server 2008 Arithmetic Calculations


Today I small arithmetic calculations in SQL Server 2008 Please find the below.

SQL Server arithmetic calculation Add, Subtract, Multiple and Divide

select 0+0 as test1, (0/cast((0+0) as decimal(5,1))*100) as test2

No comments:

Post a Comment