Scratchpad2

0

Please login or register to vote for this query.

(click on this box to dismiss)

Operations Research Meta

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%';*/

Enter Parameters

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