select * from (select top 15 OwnerUserId as 'UserId', cou...

0

Please login or register to vote for this query.

(click on this box to dismiss)

Amateur Radio Meta

Q&A about the site for amateur radio enthusiasts

select * from (select top 15
OwnerUserId as 'UserId',
count(*) as PostCount
from Posts
join Users on Users.Id = Posts.OwnerUserId
group by OwnerUserId
union all
select top 15
UserId,
count(*) as CommentCount
from Comments
join Users on Users.Id = Comments.UserId
group by UserId) as a

Enter Parameters

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