select top 20 Title, CreationDate, DATEDIFF(YEAR,Creation...

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

select top 20 Title, CreationDate, DATEDIFF(YEAR,CreationDate,GETDATE())
from Posts
WHERE year(CreationDate) - year(GETDATE()) = 3
AND month(CreationDate)=month(GETDATE())
AND day(CreationDate)=DAY(GETDATE());

Enter Parameters

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