Stackoverflow average votes vs viewed count

0

Please login or register to vote for this query.

(click on this box to dismiss)

Amateur Radio

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(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

Enter Parameters

Options:
Switch sites:
loading Hold tight while we fetch your results