Q&A for SharePoint enthusiasts
SELECT (SELECT COUNT(*) FROM Posts WHERE PostTypeId = 1) AS TotalQuestionsAsked, (SELECT COUNT(*) FROM Posts WHERE PostTypeId = 1 AND AcceptedAnswerId IS NOT NULL) AS TotalQuestionsSolved