Posts containing string1 but not string2


Please login or register to vote for this query.

(click on this box to dismiss)

Bicycles Meta

Q&A about the site for people who build and repair bicycles, people who train cycling, or commute on bicycles

SELECT TOP ##num?100##
  Id As [Post Link], OwnerUserId AS [User Link], 
  'site://posts/' + CAST(Id AS varchar)+'/revisions' AS [Revisions],
  CreationDate, LastActivityDate,  Score, ViewCount, Body
  FROM Posts WHERE (Body LIKE '%##string1?') 
    AND NOT(Body LIKE '%##string2?')
ORDER BY CreationDate DESC

Enter Parameters

Switch to main site
loading Hold tight while we fetch your results