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)

Latin Language

Q&A for linguists, teachers, and students wanting to discuss the finer points of the Latin language

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