Please start any new threads on our new
site at http://forums.sqlteam.com. We've got lots of great SQL Server
experts to answer whatever question you can come up with.
Our new SQL Server Forums are live!
Come on over! We've restricted the ability to create new threads on these forums.
Flowing Fount of Yak Knowledge
Aged Yak Warrior
Very Important crosS Applying yaK Herder
quote:Originally posted by arkiboysBoth the following select and set return correct values heredeclare @Value decimal(20, 10) = 87.8764566declare @ValuePrevious decimal(20, 10) = 86.48456540select ((@Value - @ValuePrevious)/@ValuePrevious) * 100 set @ValueFinal = ((@Value - @ValuePrevious) / @ValuePrevious) * 100.0print @ValueFinalI am using a cursor with the above set statementI can not see why in my cursor the set returns 0.0000000000Do you see why please?