Votos de usuarios no registrados en el sitio

1

Please login or register to vote for this query.

(click on this box to dismiss)

Stack Overflow en español

Preguntas y respuestas para programadores y profesionales de la informática

select top 500
       PostId [Post Link],
       sum(  case when VoteTypeId=2 then 1 else -1 end) Puntaje,
       count(case when VoteTypeId=2 then 1 else null end) Positivos, 
       count(case when VoteTypeId=3 then 1 else null end) Negativos,
       count(*) Total
  from PostFeedback
  left join PostsWithDeleted
    on PostFeedback.PostId = PostsWithDeleted.Id
 group by PostId
 order by Total desc, Puntaje desc, Positivos desc, PostId desc

Enter Parameters

Options:
Switch sites:
loading Hold tight while we fetch your results