select top 100 u.Id , u.DisplayName, ( select count(Id) f...

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

select top 100 u.Id , u.DisplayName, 
(
    select count(Id)
    from Posts
    where OwnerUserId=u.Id
) as totalPosts,
u.Reputation, (
    select count(Id)
    from Comments
    where UserId=u.Id
) as totalComments
from Users u
WHERE u.Id in (SELECT DISTINCT Users.Id From Users 
JOIN Comments On users.ID = Comments.UserId
Where len(Text) > 150) 
order by u.Reputation desc;

Enter Parameters

Options:
Switch sites:
loading Hold tight while we fetch your results