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)

Health

Q&A for professionals in medical and allied health fields, students of those professions, related academics, and others with a sound understanding of medicine and healthcare-related sciences

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