select Users.Id, Users.DisplayName, count(distinct(Commen...

0

Please login or register to vote for this query.

(click on this box to dismiss)

Amateur Radio Meta

Q&A about the site for amateur radio enthusiasts

select 
Users.Id,
Users.DisplayName,
count(distinct(Comments.Id))
from Users
join Comments on Comments.UserId = Users.Id
where year(Comments.CreationDate)>=year(getdate())-5
group by Users.Id, Users.DisplayName

Enter Parameters

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