Scratchpad2

0

Please login or register to vote for this query.

(click on this box to dismiss)

Physics

Q&A for active researchers, academics and students of physics

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 3 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 meta site
loading Hold tight while we fetch your results