CSCW user posts by age

0

Please login or register to vote for this query.

(click on this box to dismiss)

Meta Stack Exchange

Q&A for meta-discussion of the Stack Exchange family of Q&A websites

select top 100 u.age user_age, u.id user_id, posts.id ans_id,  
posts.score ans_score, posts.body ans_body
from users u, posts
where
u.age = 48
and u.reputation between 2 and 100000
and posts.owneruserid=u.id
and u.id in 
  (select owneruserid from 
      (select owneruserid from posts where owneruserid = posts.owneruserid
group by owneruserid having count(*) >= 10
      ) X
  )
and posts.id in (select top 10 id from posts where owneruserid=u.id)
order by user_age, user_id

Enter Parameters

Options:
Switch sites:
loading Hold tight while we fetch your results