Q&A about the site for physical fitness professionals, athletes, trainers, and those providing health-related needs
SELECT (SELECT COUNT(ID) FROM POSTS WHERE PostTypeId = 1 AND AnswerCount > 0 AND CommunityOwnedDate IS NULL) AS Non_Community_Count, (SELECT COUNT(ID) FROM POSTS WHERE PostTypeId = 1 AND AnswerCount > 0 AND CommunityOwnedDate IS NOT NULL) AS Community_Count, (SELECT CONVERT(FLOAT, COUNT(ID)) FROM POSTS WHERE PostTypeId = 1 AND AnswerCount > 0 AND CommunityOwnedDate IS NOT NULL) / (SELECT COUNT(ID) FROM POSTS WHERE PostTypeId = 1 AND AnswerCount > 0 AND CommunityOwnedDate IS NULL) AS Ratio