Percent of questions with accepted answer

0

Please login or register to vote for this query.

(click on this box to dismiss)

Drupal Answers

Q&A for Drupal developers and administrators

SELECT 
    (SELECT COUNT(*) FROM Posts WHERE 
    PostTypeId = 1 AND 
    AcceptedAnswerId IS NOT NULL) * 100.0 / COUNT(*)
    AS PercentageWithAcceptedAnswer
FROM 
    Posts
WHERE 
    PostTypeId = 1;

Enter Parameters

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