Posts containing string1 but not string2 - ordered by LastAcitivtyDate

1

Please login or register to vote for this query.

(click on this box to dismiss)

The Workplace Meta

Q&A about the site for members of the workforce navigating the professional setting

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?math.uga.edu##%') 
    AND NOT(Body LIKE '%##string2?math.uga.edu/~pete##%')
---ORDER BY CreationDate DESC
ORDER BY LastActivityDate DESC

Enter Parameters

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