Median and average decision times of suggested edits in hours, by month

1

Please login or register to vote for this query.

(click on this box to dismiss)

Does not count the suggestededits decided by Community (clicking "improve edit").

Windows Phone Meta

Q&A about the site for enthusiasts and power users of Windows Phone OS

WITH Raw AS (
  SELECT
    Id,
    DATEFROMPARTS(YEAR(CreationDate), MONTH(CreationDate), 1) AS Month,
    DATEDIFF(s, CreationDate, COALESCE(ApprovalDate, RejectionDate))
      AS TimeS
  FROM SuggestedEdits
  WHERE ApprovalDate IS NOT NULL OR RejectionDate IS NOT NULL
)
SELECT
  Month,
  TimeS,
  PERCENTILE_CONT(0.5)
    WITHIN GROUP (ORDER BY TimeS) OVER (PARTITION BY Month)
    AS MedianS,
  AVG(1.0 * TimeS) OVER (PARTITION BY Month) AS AvgS
FROM Raw
ORDER BY Id DESC

Enter Parameters

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