Question 3

0

Please login or register to vote for this query.

(click on this box to dismiss)

Anime and Manga

Q&A for anime and manga fans

with user_list as (
select
  Id
from
  Users a
where
    CreationDate < dateadd(month, -6, getdate())
)

, comment as (
select distinct
  PostId
  ,UserId
from 
  comments
where
  UserId in (select * from user_list)
)


select 
  UserId
  ,count(PostId) count_posts
from 
  comments
group by
  UserId
having
  count(PostId) >= 10
order by
  count(PostId) desc

Enter Parameters

Options:
Switch to meta site
loading Hold tight while we fetch your results