Best 1000 questions in the last 500 days


Please login or register to vote for this query.

(click on this box to dismiss)

Stack Overflow

Q&A for professional and enthusiast programmers

-- Shows the most popular questions ordered by score over a certain timespan

DECLARE @newestquestion DateTime
SELECT @newestquestion = MAX(CreationDate) FROM Posts

-- This query is just here if you want to get a 'feeling' of good settings for the vars above
--SELECT COUNT(id) FROM Posts WHERE PostTypeId = 1 AND Score >= 4 AND CreationDate >= @newestquestion-365

SELECT TOP 1000 Id AS [Post Link], ViewCount AS Views, Score, AnswerCount As Answers, CreationDate AS Date FROM Posts WHERE PostTypeId = 1 AND CreationDate >= @newestquestion-500 ORDER BY Score DESC;

Enter Parameters

Switch to meta site
loading Hold tight while we fetch your results