Q&A for professional and enthusiast programmers
select avg(value), stdevp(value) from ( select cast(count(v.Id) as float) / p.ViewCount as value from Votes v, Posts p where v.VoteTypeId in (2, 3) and p.Id = v.PostId and p.posttypeid = 1 group by p.ViewCount, p.id ) t