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)

DevOps Meta

Q&A about the site for software engineers working on automated testing, continuous delivery, service integration and monitoring, and building SDLC infrastructure

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