Q&A about the site for committed Christians, experts in Christianity and those interested in learning more
select young.tagname, young.age_cat, young.rep_tot, young.score_tot, young.users_tot, veteran.age_cat, veteran.rep_tot, veteran.score_tot, veteran.users_tot from (select tags.tagname, 'younger' as age_cat, sum(users.reputation) rep_tot, sum(posts.score) score_tot, count(posts.owneruserid) users_tot from users, posts, posttags, tags where users.age is not null and users.age between 15 and 39 and users.reputation between 2 and 100000 and year(posts.creationdate)=2012 and posts.owneruserid=users.id and posts.id = posttags.postid and posttags.tagid=tags.id group by tags.tagname) young, (select tags.tagname, 'veteran' as age_cat, sum(users.reputation) rep_tot, sum(posts.score) score_tot, count(posts.owneruserid) users_tot from users, posts, posttags, tags where users.age is not null and users.age > 39 and users.reputation between 2 and 100000 and year(posts.creationdate)=2012 and posts.owneruserid=users.id and posts.id = posttags.postid and posttags.tagid=tags.id group by tags.tagname) veteran where young.tagname=veteran.tagname