find specific imgur image

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 TOP 15000 p.Id AS [Post Link],
    COALESCE(q.ViewCount, p.ViewCount) AS ViewCount,
    COALESCE(q.Tags, p.Tags) AS Tags
FROM Posts AS p
LEFT JOIN Posts AS q ON p.ParentId = q.Id
LEFT JOIN Posts AS pq ON q.ParentId = pq.Id
WHERE (p.Body LIKE '%i.imgur.com/%.jpg%')
AND COALESCE(q.ClosedDate, p.ClosedDate) IS NULL
ORDER BY 2 DESC

Enter Parameters

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