You are reading a single comment by @rhowe and its replies. Click here to read the full conversation.
  • select
    username,
    count(*) as numposts
    from
    posts p
    inner join
    users u
    on
    p.userid = u.id
    where
    p.id = 123456 and p.created > '5-aug-2011'
    group by
    u.id
    order by
    numposts desc

About

Avatar for rhowe @rhowe started