select Users.Id, count (distinct Posts.Id) as Unique_Post...

0

Please login or register to vote for this query.

(click on this box to dismiss)

Meta Server Fault

Q&A about the site for system and network administrators

select Users.Id, count (distinct Posts.Id) as Unique_Posts
from "Users"
join "Posts"
        on Users.Id = Posts.OwnerUserId
where Users.CreationDate > dateadd(month, -6, getdate())
and Posts.CommentCount >= '10'
group by Users.Id
order by Unique_Posts desc

Enter Parameters

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