Statistics on site comments

0

Please login or register to vote for this query.

(click on this box to dismiss)

Role-playing Games

Q&A for gamemasters and players of tabletop, paper-and-pencil role-playing games

select avg((numComments*1.0)/numPosts) as commentPostRatioAverage, stdev((numComments*1.0)/numPosts) as commentPostRatioStDev 
from (select count(*) as numComments, users.id as userid
        from comments join users on (comments.userid = users.id)
       group by users.id) nC join 
     (select count(*) as numPosts, users.id as userid
       from posts join users on (posts.owneruserid = users.id)
      group by users.id) nP on (nC.userid = nP.userid)

Enter Parameters

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