Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
从 C# 中的数据库检索数据后,我必须实现标准偏差。
income我必须从性别为male或的字段名称中检索一组值female
income
male
female
有没有直接计算标准差的SQL命令?还是我应该使用 C# 单独计算它?
尝试STDEV聚合函数:
STDEV
select gender , avg(value) , STDEV(value) from YourTable group by gender