Q&A for amateur radio enthusiasts
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(cast(sum(p.Score) as float)/count(*) as decimal(10,2)) as votes_per_post, cast(sum(cast(p.ViewCount as float))/sum(p.Score) as decimal(10,2)) as views_per_upvotes FROM PostsWithDeleted p group by YEAR(p.CreationDate) order by post_year asc