select owneruserid, displayname, count(case when posttype...

0

Please login or register to vote for this query.

(click on this box to dismiss)

Sitecore Meta

Q&A about the site for developers and end users of the Sitecore CMS and multichannel marketing software

select owneruserid, displayname, count(case when posttypeid=1 and score=0 then 1 end) num, 
count(case when posttypeid=1 and score>0 then 1 end) from posts p join users u on p.owneruserid=u.id
group by owneruserid, displayname
having count(case when posttypeid=1 then 1 end)>50 and owneruserid is not null
order by owneruserid

Enter Parameters

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