Standard deviation command in SQL

前端 未结 1 739
耶瑟儿~
耶瑟儿~ 2021-01-26 12:59

I have to implement standard deviation after retrieving data from the database in C#.

I have to retrieve a set of values from the field name income where th

1条回答
  •  时光说笑
    2021-01-26 13:05

    Try the STDEV aggregate function:

    select  gender
    ,       avg(value)
    ,       STDEV(value)
    from    YourTable
    group by
            gender
    

    0 讨论(0)
提交回复
热议问题