Tag wikis with URL shortener links

0

Please login or register to vote for this query.

(click on this box to dismiss)

Skeptics

Q&A for scientific skepticism

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 '%yfrog.com/%'
  OR
  LOWER(Posts.Body) LIKE '%yep.it/%'
  OR
  LOWER(Posts.Body) LIKE '%y.ahoo.it/%'
  OR
  LOWER(Posts.Body) LIKE '%wp.me/%'
  OR
  LOWER(Posts.Body) LIKE '%tr.im/%'
  OR
  LOWER(Posts.Body) LIKE '%tinyurl.com/%'
  OR
  LOWER(Posts.Body) LIKE '%/t.co/%'
  OR
  LOWER(Posts.Body) LIKE '%.t.co/%'
  OR
  LOWER(Posts.Body) LIKE '%shorl.com/%'
  OR
  LOWER(Posts.Body) LIKE '%ping.fm/%'
  OR
  LOWER(Posts.Body) LIKE '%ow.ly/%'
  OR
  LOWER(Posts.Body) LIKE '%j.mp/%'
  OR
  LOWER(Posts.Body) LIKE '%is.gd/%'
  OR
  LOWER(Posts.Body) LIKE '%goo.gl/%'
  OR
  LOWER(Posts.Body) LIKE '%flic.kr/%'
  OR
  LOWER(Posts.Body) LIKE '%fb.me/%'
  OR
  LOWER(Posts.Body) LIKE '%digg.com/%'
  OR
  LOWER(Posts.Body) LIKE '%cl.ly/%'
  OR
  LOWER(Posts.Body) LIKE '%bit.ly/%'
  OR
  LOWER(Posts.Body) LIKE '%git.io/%'
  )
ORDER BY Tags.Id

Enter Parameters

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