SELECT TOP 1 DATEDIFF(second, CreationDate, ClosedDate) A...

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 TOP 1
  DATEDIFF(second, CreationDate, ClosedDate) AS CloseTime,
  Id AS [Post Link] 
FROM 
  Posts
WHERE
  ClosedDate IS NOT NULL
ORDER BY
  CloseTime

Enter Parameters

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