Anonymous Feedback for a Specific Post

1

Please login or register to vote for this query.

(click on this box to dismiss)

Stack Overflow на русском Meta

Вопросы и ответы о сайте для программистов

Select count(VoteTypeId) as 'total votes',
    SUM(CASE WHEN VoteTypeId = 2 THEN 1 ELSE 0 END) AS 'number of up votes',
      SUM(CASE WHEN VoteTypeId = 3 THEN 1 ELSE 0 END) AS 'number of down votes'
    From PostFeedback
    where postid=11227809

Enter Parameters

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