Answer breakdown by which side of score = 10

0

Please login or register to vote for this query.

(click on this box to dismiss)

Stack Overflow

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##
;

Enter Parameters

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