123

0

Please login or register to vote for this query.

(click on this box to dismiss)

Ebooks

Q&A for ebook publishers and readers

SELECT 
    COUNT(*) AS TotalQuestions,
    COUNT(DISTINCT a.Id) AS QuestionsWithAnswers
FROM 
    Posts q
LEFT JOIN 
    Posts a ON q.Id = a.ParentId AND a.PostTypeId = 2 -- 2 indicates answers
WHERE 
    q.PostTypeId = 1 -- 1 indicates questions
    AND q.CreationDate >= '2022-01-01'
    AND q.Id IN (
        SELECT PostId 
        FROM PostTags 
        WHERE TagId = (SELECT Id FROM Tags WHERE TagName = 'activemq-classic')
    )

Enter Parameters

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