Q&A about the site for engineers, scientists, programmers, and computing professionals interested in quantum computing
WITH TotalPosts AS ( SELECT COUNT(*) AS TotalPostCount FROM Posts ), PostsWithComments AS ( SELECT COUNT(DISTINCT PostId) AS PostsWithCommentCount FROM Comments WHERE PostId IS NOT NULL ) SELECT (TotalPosts.TotalPostCount - PostsWithComments.PostsWithCommentCount) * 100.0 / TotalPosts.TotalPostCount AS PercentageNoComments FROM TotalPosts, PostsWithComments;