Tag wikis with old external http:// links

0

Please login or register to vote for this query.

(click on this box to dismiss)

Role-playing Games

Q&A for gamemasters and players of tabletop, paper-and-pencil role-playing games

SELECT DISTINCT
  Tags.Id,
  Tags.TagName,
  'site://tags/' + Tags.Tagname + '/info|Url' AS Url,
  len(Posts.Body)
FROM Tags
LEFT JOIN Posts ON Posts.Id = Tags.WikiPostId OR Posts.Id = Tags.ExcerptPostId
WHERE
  (
  LOWER(Posts.Body) LIKE '%http://github.%'
  OR
  LOWER(Posts.Body) LIKE '%http://wikipedia.%'
  OR
  LOWER(Posts.Body) LIKE '%http://__.wikipedia.%'-- en.wikipedia
  OR
  LOWER(Posts.Body) LIKE '%http://microsoft.%'
  OR
  LOWER(Posts.Body) LIKE '%http://___.microsoft.%'-- www.microsoft
  OR
  LOWER(Posts.Body) LIKE '%http://____.microsoft.%'-- msdn.microsoft
  OR
  LOWER(Posts.Body) LIKE '%http://____.google.%'-- code.google
  OR
  LOWER(Posts.Body) LIKE '%http://web.archive.org%'
  )
ORDER BY Tags.Id

Enter Parameters

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