Q&A for professional and enthusiast programmers
SELECT COUNT(1) AS [Total], COUNT(CASE WHEN [Score] >= 10 THEN 1 ELSE NULL END) AS [EGT10], COUNT(CASE WHEN [Score] < 10 THEN 1 ELSE NULL END) AS [LG10] FROM [Posts] WHERE [PostTypeId] = 2 AND [DeletionDate] IS NULL AND [OwnerUserId] = ##UserId## ;