with Questions as ( select * from Posts where ParentId i...

0

Please login or register to vote for this query.

(click on this box to dismiss)

Ask Ubuntu Meta

Q&A about the site for Ubuntu users and developers

-- Enter Query Title
-- Enter Query Description

with Questions as (
select * from Posts
where ParentId is null
and Score = 0
)

select top 100 p.ParentId as [Post Link], sum(p.Score) as AnswerScore from Posts p
join Questions q on p.ParentId = q.Id
group by p.ParentId
order by AnswerScore desc

Enter Parameters

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