Reputation By year

0

Please login or register to vote for this query.

(click on this box to dismiss)

User Experience Meta

Q&A about the site for user experience researchers and experts

declare @userId int = ##userId##;
SELECT DATEPART(Year, a.CreationDate)as Year,
       MAX(u.Reputation) as MaxReputation
--INTO #Reputations

FROM Posts a join Posts q on q.Id = a.ParentId
Join Users U on a.OwnerUserId = u.Id
where a.OwnerUserId = @userId
GROUP BY DATEPART(Year, a.CreationDate)

Enter Parameters

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