select count(p.Id) as PostsCount, count(u.Id) as UserCoun...

0

Please login or register to vote for this query.

(click on this box to dismiss)

Stack Overflow

Q&A for professional and enthusiast programmers

-- Enter Query Title
-- Enter Query Description
select count(p.Id) as PostsCount, count(u.Id) as UserCount, count(b.Id) as BadgeCount
from Posts as p join Users as u on p.OwnerUserId = u.Id 
join Badges as b on b.UserId = u.Id
where u.Id = 118104 --and b.Name = 'Commenter'
group by b.Id

Enter Parameters

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