WITH CreatedAndAsked AS ( SELECT p1.CreationDate DateAsk...

0

Please login or register to vote for this query.

(click on this box to dismiss)

Computational Science Meta

Q&A about the site for scientists using computers to solve scientific problems

WITH CreatedAndAsked AS (

SELECT p1.CreationDate DateAsked, p2.CreationDate DateCreated
FROM Posts p1
INNER JOIN Posts p2
ON p1.AcceptedAnswerId = p2.Id
WHERE YEAR(p1.CreationDate) = '2017'
) 

SELECT DATEDIFF(s, DateAsked, DateCreated)
FROM CreatedAndAsked

Enter Parameters

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