Posts containing string1 but not string2

1

Please login or register to vote for this query.

(click on this box to dismiss)

Stack Apps

Q&A for apps, scripts, and development with the Stack Exchange API

SELECT TOP ##num##
  Id As [Post Link], OwnerUserId AS [User Link], CreationDate, LastActivityDate,  Score, ViewCount, Body
  FROM Posts WHERE (Body LIKE '%##string1##%') 
    AND NOT(Body LIKE '%##string2##%')     
  ORDER BY CreationDate DESC

Enter Parameters

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