I have the following SQL query that comes out at 700
declare @a decimal(10,0)
declare @b decimal(10,0)
set @a = 100 - 2
set @a = @a / 14
set @a = @a * 100
set @a = ((100 - 2) / 14) * 100
select @a
What i am looking for it do is return 85.714285 etc…
Not quite sure where i going wrong.
Thanks
700is the correct result.Please check again!
You calculated that
You want to use this sql query.