Posts by Jon Skeet per day versus total badges he's earnt

1

Please login or register to vote for this query.

(click on this box to dismiss)

Moderators

Q&A for community managers, administrators, and moderators

select CAST(p.CreationDate as Date) as PostDate, count(p.Id) as Posts,
(
select count(b.id) / 100
  from badges b
  where b.UserId = u.Id
  and b.date <= CAST(p.CreationDate as Date)
  ) as BadgesEarned
from posts p, users u
  where u.Id = 22656
  and p.OwnerUserId = u.Id
  group by CAST(p.CreationDate as Date), u.Id
order by CAST(p.CreationDate as Date)

Enter Parameters

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