Tag names / wikis / excerpts containing certain words

1

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 t.TagName, 'Tag', ''
  FROM Tags AS t
  WHERE t.TagName LIKE '%' + ##query:string## + '%' collate sql_latin1_general_cp1_ci_ai
  
UNION ALL

SELECT t.TagName, 'Excerpt', p.Body
  FROM Tags AS t
  INNER JOIN Posts AS p
    ON p.Id = t.ExcerptPostId
  WHERE p.Body LIKE '%' + ##query:string## + '%' collate sql_latin1_general_cp1_ci_ai
  
UNION ALL

SELECT t.TagName, 'Wiki', p.Body
  FROM Tags AS t
  INNER JOIN Posts AS p
    ON p.Id = t.WikiPostId
  WHERE p.Body LIKE '%' + ##query:string## + '%' collate sql_latin1_general_cp1_ci_ai

Enter Parameters

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