Search comments by comment text

0

Please login or register to vote for this query.

(click on this box to dismiss)

Stack Overflow em Português

Perguntas e respostas para programadores profissionais e entusiastas

SELECT
  count(CASE WHEN p.Score <= -1 THEN 1 END) negative,
  count(CASE WHEN p.Score = 0 THEN 1 END) zero,
  count(CASE WHEN p.Score >= 1 THEN 1 END) positive
FROM Posts p join Comments c on (p.Id = c.PostId) 
WHERE UPPER(c.Text) LIKE UPPER('%sobrevivência%')
  AND p.ClosedDate is not null

Enter Parameters

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