best reputation days 2012

0

Please login or register to vote for this query.

(click on this box to dismiss)

Stack Overflow

Q&A for professional and enthusiast programmers

SELECT TOP 100 Rep, OwnerDisplayName, OwnerUserId, dt 
FROM (
    SELECT SUM(Score) Rep, OwnerDisplayName, OwnerUserId, convert(varchar, CreationDate, 101) dt
        FROM Posts
        GROUP BY OwnerDisplayName, OwnerUserId, convert(varchar, CreationDate, 101)
    ) a
    WHERE year(dt) = 2012
ORDER BY Rep DESC

Enter Parameters

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