Winter is almost enlightened

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

select 
  a.id as [Post Link], 
  users.displayname, 
  a.score 
from posts a
  join users on a.owneruserid = users.id
where (score between 7 and 9)
  and a.posttypeid = 2
  and a.deletiondate is null 
  and a.closeddate is null 
  and a.communityowneddate is null  
  and exists (select id from posts q where q.acceptedanswerid = a.id)
  and a.creationDate in (select min(creationDate) from posts otherAs where parentid = a.parentid)
order by displayname, score desc

Enter Parameters

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