Average time between post creation and first vote


Please login or register to vote for this query.

(click on this box to dismiss)

Stack Overflow em Português

Perguntas e respostas para programadores profissionais e entusiastas

CONVERT(DATETIME, CONCAT(YEAR(Posts.CreationDate), '-', MONTH(Posts.CreationDate), '-01'), 20) AS Mes,
FROM (SELECT MIN(CreationDate) as FirstVoteCreationDate, PostId FROM Votes WHERE VoteTypeId IN(2,3) GROUP BY PostId) v JOIN Posts on Posts.Id=v.PostId
WHERE PostTypeId=2 -- Somente perguntas
GROUP BY YEAR(Posts.CreationDate), MONTH(Posts.CreationDate)
ORDER BY YEAR(Posts.CreationDate), MONTH(Posts.CreationDate)

Enter Parameters

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