Posts containing string1 but not string2 with no macro definition

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 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##%')  
    AND NOT(Body LIKE '%\newcommand%') 
    AND NOT(Body LIKE '%\DeclareMathOperator%') 
    AND NOT(Body LIKE '%\def%')     
  ORDER BY CreationDate DESC

Enter Parameters

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