select k.Id, votes.VoteTypeId from votes join (select p.Id

0

Please login or register to vote for this query.

(click on this box to dismiss)

Software Engineering

Q&A for expert programmers interested in professional discussions on software development

select k.Id, votes.VoteTypeId from votes

join
  (select p.Id
  from posts as p
  join
    (select Id from posts
    where CreationDate BETWEEN '2015-08-01' AND '2015-08-31'
    and AnswerCount=1
    and PostTypeId = 1) --question
  as d on d.Id = p.ParentID
  where p.CreationDate BETWEEN '2015-08-01' AND '2015-08-31')

as k on k.Id = votes.PostId
where votes.VoteTypeId between 1 and 2
order by k.Id

Enter Parameters

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