select all link of one tag

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 Top 5 count(*)
SELECT Top 30000 *
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 = 1
--AND tp.CreationDate > mp.CreationDate
--AND ((tp.Score*1.0)/(tp.ViewCount+1)) > ((mp.Score*1.0)/(mp.ViewCount+1))
AND pl.CreationDate > '2000-02-01 00:00:00'
AND pl.CreationDate < '2022-05-01 00:00:00'
AND tp.Score >= 1
AND mp.Score >= 1
AND tp.Tags LIKE '%<java>%'
ORDER BY NEWID()

Enter Parameters

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