Q&A for professional and amateur woodworkers
Select YEAR(p.CreationDate) post_year, format(count(*),'0,,.00 Million') posts_count, format(sum(p.Score),'0,,.00 Million') total_votes, format(sum(cast(p.ViewCount as BIGINT)),'0,,,.00 Billion') views, cast(sum(cast(p.ViewCount as float))/sum(p.Score) as decimal(10,2)) as views_per_upvotes, cast(cast(sum(p.Score) as float)/count(*) as decimal(10,2)) as votes_per_post FROM PostsWithDeleted p group by YEAR(p.CreationDate) order by post_year asc