Orphaned tag wikis

1

Please login or register to vote for this query.

(click on this box to dismiss)

Meta Stack Exchange

Q&A for meta-discussion of the Stack Exchange family of Q&A websites

---case insensitive
---find also tagname
SELECT 
  p.Id AS [Post Link],
  p.CreationDate,
  concat(
          'site://tags/',
          t.tagname,
          '/info|',
          t.tagname,
          ' ',
          case when p.posttypeid = 4 then 'excerpt' else 'wiki' end
          ) [Tag Link],
  url = 'site://posts/' + CAST(p.Id AS varchar)+'/revisions',
  p.Body 
FROM Posts p left outer join tags t on (t.wikipostid = p.id or t.excerptpostid = p.id)
WHERE (p.PostTypeId in (4,5))
  AND (t.tagname IS NULL)
ORDER BY p.Id

Enter Parameters

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