arkiboys Flowing Fount of Yak Knowledge
1341 Posts
lionofdezert Aged Yak Warrior
Pakistan 864 Posts
visakh16 Very Important crosS Applying yaK Herder
India 47189 Posts
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?