JanitorTags: excerpt == wiki

0

Please login or register to vote for this query.

(click on this box to dismiss)

Unix and Linux

Q&A for users of Linux, FreeBSD and other Un*x-like operating systems.

SELECT TagName, Count, E.Body, W.Body FROM Tags
JOIN Posts E on E.Id = Tags.ExcerptPostId
JOIN Posts W on W.Id = Tags.WikiPostId
WHERE (E.Body = W.Body
OR (W.Body LIKE '<p>' + E.Body + '</p>%'
    AND
    LEN(W.Body) < 20 + LEN(E.Body))
    )
ORDER BY Count DESC

Enter Parameters

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