datediff

0

Please login or register to vote for this query.

(click on this box to dismiss)

Stack Overflow en español

Preguntas y respuestas para programadores y profesionales de la informática

SELECT AVG(DATEDIFF(HOUR, CreationDate, ClosedDate)) AS avg_secs
FROM Posts
WHERE ClosedDate IS NOT NULL
AND datepart(year, CreationDate) = 2017

Enter Parameters

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