Q&A about the site for operations research and analytics professionals, educators, and students
DECLARE @UserId int = ##UserId## select top 20 UserId as [User Link], count(Id), sum(Score) from Comments where UserId is not null group by UserId order by 2 desc; /*select coalesce(cast(UserId as nvarchar(30)),UserDisplayName),Comments.*, Id as [Comment Link] from Comments where Text like '%pit%';*/