Q&A for scientists using computers to solve scientific problems
select age, count(*) programmers, sum(reputation) reputation, min(cast(reputation as FLOAT)) min_reputation, avg(cast(reputation as FLOAT)) avg_reputation, max(cast(reputation as FLOAT)) max_reputation, stdev(cast(reputation as FLOAT)) stdev_reputation from users where age is not null and age between 18 and 70 and users.id in (select users.id from users, posts answers where answers.posttypeid=2 and users.id=answers.owneruserid and year(answers.creationdate)=2012) group by age order by age