Q&A about the site for amateur radio enthusiasts
select top 10 Users.Id, count(distinct(Posts.Id)), count(distinct(Comments.Id)) from Users join Posts on Posts.OwnerUserId = Users.Id join Comments on Posts.id = Comments.PostId and Comments.UserId = Users.Id where (year(Comments.CreationDate)>=year(getdate())-5) group by Users.Id