SELECT p.Id AS [Post Link], p.Score, u.Id AS [User Link],...

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 p.Id AS [Post Link], p.Score, u.Id AS [User Link], 
a.Score AS "Accepted Score", au.Id AS [User Link]
  
FROM Posts p
JOIN Posts a ON p.AcceptedAnswerId = a.Id
JOIN Users u ON p.OwnerUserId = u.Id
JOIN Users au ON a.OwnerUserId = au.Id
WHERE p.PostTypeId = 1
AND p.Score >= ##MinScore:int##
and p.AcceptedAnswerId IS NOT NULL
-- MinScore: Minimum question score to include.
ORDER BY p.Score DESC

Enter Parameters

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