Numbers of keeper/archivist/curator


Please login or register to vote for this query.

(click on this box to dismiss)

Psychology & Neuroscience Meta

Q&A about the site for practitioners, researchers, and students in cognitive science, psychology, neuroscience, and psychiatry

with all_posts as (
select, p.owneruserid
  from posts p
  join posts q
    on p.parentid =
   and p.owneruserid <> q.owneruserid
  join posthistory ph
    on p.parentid = ph.postid
   and p.owneruserid = ph.userid
  join votes v
    on = v.postid
 where p.posttypeid = 2
   and ph.posthistorytypeid in (4, 5)
   and q.posttypeid = 1
   and q.closeddate is null
   and v.votetypeid in (2, 3)
 group by, p.owneruserid
having sum(case when v.votetypeid = 2 then 1 else -1 end) >= 1
, all_users as (
select owneruserid, count(*) as ct
  from all_posts
 group by owneruserid
having count(*) >= 10
select case when ct >= 500 then 'gold'
            when ct >= 50 then 'silver'
            else 'bronze'
       end as badges
     , count(*)
  from all_users
 group by case when ct >= 500 then 'gold'
               when ct >= 50 then 'silver'
               else 'bronze'

Enter Parameters

Switch to main site
loading Hold tight while we fetch your results