I have this table structure on a SQL Server 2008 R2 database:
CREATE TABLE FormTest ( clientid char(10), DateSelected date, A int, B int, C int )
declare @a int declare @b int declare @c int set @a=65150 set @b=4921 set @c=1 select convert(float,((@a+@b+@c)/ 216647.0 * 10) )