declare @answers int, @questions int, @askers int, @answ...

0

Please login or register to vote for this query.

(click on this box to dismiss)

Mathematics Meta

Q&A about the site for people studying math at any level and professionals in related fields

-- Enter Query Title
-- Enter Query Description

declare 
   @answers int, 
   @questions int, 
   @askers int, 
   @answerers int, 
   @avgAnswerScore float, 
   @avgQuestionScore float

select 
 t.Id,
 avg(p1.Score + 0.0)
from Posts p
join Posts p1 on p1.ParentId = p.Id 
join PostTags pt on pt.PostId = p.Id
join Tags t on t.Id = pt.TagId 
group by t.Id

Enter Parameters

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