Q&A about the site for mechanics and DIY enthusiast owners of cars, trucks, and motorcycles
select top 10 Id, DATEDIFF(DAY, CreationDate, GetDate()), CreationDate, GetDate() --Score, Id as [Post Link], Tags from Posts where 1=1 -- and Score > 500 -- and PostTypeId = 1 -- and ClosedDate is null -- and DATEDIFF(DAY, CreationDate, GetDate()) < 7 --order by Score desc order by Id desc