Questions/Answers Ratio

0

Please login or register to vote for this query.

(click on this box to dismiss)

Gardening and Landscaping Meta

Q&A about the site for gardeners and landscapers

-- Questions/Answers Ratio

select top 100 
    sum(case when p.PostTypeId = 2 then 1 else 0 end) as c,
    sum(case when p.PostTypeId = 1 then 0 else 1 end) as d,
    u.id as [User Link]
from posts p
join users u 
on p.owneruserid = u.id
where u.id is not null and 
p.CommunityOwnedDate is null and
(p.PostTypeId = 1 or p.PostTypeId = 2)
group by u.id
order by c desc

Enter Parameters

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