Posts that have an open bounty vote, but not close bounty vote

1

Please login or register to vote for this query.

(click on this box to dismiss)

Stack Overflow

Q&A for professional and enthusiast programmers

with opened as (
  select postid
  from votes 
  where votetypeid = 8 -- for opened
),

closed as (
  select postid
  from votes
  where votetypeid = 9 -- for closed
)

select postid, postid as [Post Link]
from closed
where postid not in (select * from opened)

Enter Parameters

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