日期:2014-05-17 浏览次数:20416 次
select ID,班级, ((成绩 - avg(成绩))/POWER(VARIANCE(成绩), 0.5))*10+50 from A group by 班级
-->try select ID,班级, ((成绩 - t.平均成绩)/t.标准差)*10+50 from A,(select 班级, avg(成绩) 平均成绩, POWER(VARIANCE(成绩),0.5) 标准差 from @test group by 班级) t where A.班级=t.班级