Number of Questions Bumped N Times by Community User


Please login or register to vote for this query.

(click on this box to dismiss)

Stack Overflow

Q&A for professional and enthusiast programmers

SELECT BumpCount, COUNT(*) AS NumberOfQuestionsBumped
  FROM (SELECT P.ID, B.BumpCount
          FROM Posts AS P
          JOIN (SELECT PostID, COUNT(*) AS BumpCount
                  FROM PostHistory
                 WHERE PostHistoryTypeID  = 50
                 GROUP BY PostID
                HAVING COUNT(*) > 2) AS B
                ON P.ID = B.PostID
       ) AS RawBumpCounts
 GROUP BY BumpCount
 ORDER BY BumpCount;

Enter Parameters

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