Distribution of HNQs based on minutes until entering

1

Please login or register to vote for this query.

(click on this box to dismiss)

Meta Stack Exchange

Q&A for meta-discussion of the Stack Exchange family of Q&A websites

;with times_cte AS (
SELECT
p.Id AS pid,
p.CreationDate AS cre,
ph.CreationDate AS hot,
DATEDIFF(minute, p.CreationDate, ph.CreationDate) AS minutes
FROM PostHistory ph INNER JOIN Posts p ON ph.PostId=p.Id
WHERE ph.PostHistoryTypeId=52
---52 = Question became hot network question
)

SELECT
  minutes,
  COUNT(pid) AS Count
FROM times_cte
GROUP BY minutes
ORDER BY minutes

Enter Parameters

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