Testing

0

Please login or register to vote for this query.

(click on this box to dismiss)

The Workplace Meta

Q&A about the site for members of the workforce navigating the professional setting

--declare @x INT = 2018 
SELECT  count(*)
--datepart(year,question.creationdate), 
--DATEDIFF(day, question.creationdate, asnswer.creationdate) 
FROM posts question 
inner join posts asnswer 
on question.AcceptedAnswerId = asnswer.id
where datepart(year,question.creationdate) <= 2018
and DATEDIFF(day, question.creationdate, asnswer.creationdate) >= 0
--order by datepart(year,question.creationdate) desc

--order by DATEDIFF(day, question.creationdate, asnswer.creationdate) desc




--datepart(year,creationdate) = @x

Enter Parameters

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