Average time between post creation and first vote

0

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

SELECT
CONVERT(DATETIME, CONCAT(YEAR(p.CreationDate), '-', MONTH(p.CreationDate), '-01'), 20) AS Mes,
datediff(day,p.CreationDate,vcd),
*
FROM Posts as p JOIN (Select TOP 1 CreationDate as vcd,PostId FROM Votes ORDER BY CreationDate) v ON v.PostId=p.Id

Enter Parameters

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