SELECT Questions.ID AS QuestionID, AVG(Answers.Score) AS ...

0

Please login or register to vote for this query.

(click on this box to dismiss)

Drones and Model Aircraft Meta

Q&A for experienced flyers, pilots, and builders of drones and model aircraft

SELECT 
    Questions.ID AS QuestionID, 
    AVG(Answers.Score) AS AverageAnswerScore
From 
    Posts AS Questions
JOIN 
    Posts AS Answers ON Questions.ID = Answers.ParentId 
WHERE 
    Questions.PostTypeID = 1 
    AND 
    Answers.PostTypeID = 2 
GROUP BY 
    Questions.ID
HAVING 
    COUNT(Answers.ID) > 5;

Enter Parameters

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