What is wrong with this SQL Server query division calculation?

前端 未结 4 1740
梦谈多话
梦谈多话 2020-12-11 23:41

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
)
         


        
4条回答
  •  有刺的猬
    2020-12-12 00:05

    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) )
    

提交回复
热议问题