Distribution of HNQs based on minutes until entering

1

Please login or register to vote for this query.

(click on this box to dismiss)

The Great Outdoors

Q&A for people who love being outdoors enjoying nature and wilderness, and learning about the required skills and equipment

;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