SELECT SUM(CASE WHEN PH.Id IS NOT NULL THEN 1 ELSE 0 END)...

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 SUM(CASE WHEN PH.Id IS NOT NULL THEN 1 ELSE 0 END),
COUNT(*)
FROM Posts P
LEFT JOIN PostHistory PH ON PH.PostId = P.Id AND PH.Comment = '3' AND PH.PostHistoryTypeId = 10
WHERE P.Title IS NOT NULL
   AND P.PostTypeId = 1
   AND Title LIKE '%interview%'

Enter Parameters

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