Average answer length

0

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
 (datepart(yy, p.creationdate) + (datepart(wk, p.creationdate)-1) / 52.0) as YR_WK,
  Min(Len(p.Body)) AS [Min],
  Avg(Len(p.Body)) AS [Average],
  Max(Len(p.Body)) AS [Max]
FROM Users u, Posts p
WHERE p.PostTypeId = 2 and p.creationdate>='2015-06-01 00:00'
GROUP BY (datepart(yy, p.creationdate) + (datepart(wk, p.creationdate)-1) / 52.0)
ORDER BY (datepart(yy, p.creationdate) + (datepart(wk, p.creationdate)-1) / 52.0)

Enter Parameters

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