declare @t1 decimal, @t2 decimal,@t3 decimal
set @t1 = 2130.23
set @t2 = 3932.02
set @t3 = 2156.52
select (((@t1/@t2)*@t3)/@t1)*@t2 decimaltype
go
declare @t1 decimal (12,2), @t2 decimal (12,2),@t3 decimal (12,2)
set @t1 = 2130.23
set @t2 = 3932.02
set @t3 = 2156.52
select (((@t1/@t2)*@t3)/@t1)*@t2 decimaltype
go
|