select reverse link by [score]


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 pl.CreationDate, pl.PostId AS [Post Link], pl.RelatedPostId AS [Post Link], 
--tp.Score as tp_qulity, mp.Score as mp_qulity
-- SELECT count(*)
SELECT pl.PostId, pl.RelatedPostId, tp.Score, mp.Score
FROM PostLinks pl
JOIN Posts as tp ON tp.Id = pl.PostId
JOIN Users as tu ON tu.Id = tp.OwnerUserId
JOIN Posts as mp ON mp.Id = pl.RelatedPostId
JOIN Users as mu ON mu.Id = mp.OwnerUserId
WHERE pl.LinkTypeId = 3
AND tp.CreationDate > mp.CreationDate
AND tp.Score > mp.Score
AND tp.AnswerCount > 0
ORDER BY pl.CreationDate DESC

Enter Parameters

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