select CommentCount, Round(count(CommentCount) * 100.0...

0

Please login or register to vote for this query.

(click on this box to dismiss)

Emacs

Q&A for those using, extending or developing Emacs

-- What percentage of posts have no comments attached to them?

--Select count(Id)
--From Posts
--where CommentCount = '0'

--select count(Id)
--from Posts

select CommentCount, Round(count(CommentCount) * 100.0 / (select count(*) from Posts),2) as Percentage_No_Comments
from Posts
where CommentCount = '0'
group by CommentCount;

Enter Parameters

Options:
Switch to meta site
loading Hold tight while we fetch your results