Number of posts with bounty start and finish

0

Please login or register to vote for this query.

(click on this box to dismiss)

Stack Overflow

Q&A for professional and enthusiast programmers

-- select * from votetypes

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

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


select count(*) 
from (
  select * from opened 
  intersect
  select * from closed
) q

Enter Parameters

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