How to find the post having highest upvote without any downvote

0

Please login or register to vote for this query.

(click on this box to dismiss)

http://meta.stackexchange.com/questions/280695/how-to-find-the-post-having-highest-upvote-without-any-downvote

Tor

Q&A for researchers, developers, and users of Tor

select top 1000 p.id as [Post Link]
      , posttypeid 
      ,score 
from posts p
left outer join votes v on v.postid = p.id and votetypeid =##votetypeid##
and posttypeid in (1,2)
and v.id is null
order by score desc

Enter Parameters

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