Posts that probably need editing

5

Please login or register to vote for this query.

(click on this box to dismiss)

Updated with feedback from CodeReview.SE: https://codereview.stackexchange.com/q/176680

Drupal Answers

Q&A for Drupal developers and administrators

SELECT Posts.Id AS [Post Link], PostTypes.Name
FROM Posts
INNER JOIN PostTypes
ON Posts.PostTypeId = PostTypes.Id
WHERE
ClosedDate IS NULL AND
(
  (
    PostTypeId = 1 AND
    Title LIKE '[abcdefghijklmnopqrstuvwxyz]%' OR
    Title NOT LIKE '%?'
    COLLATE Latin1_General_CS_AS
  ) OR
  (
    PostTypeId NOT IN (1, 6) AND 
    Body LIKE '%<p>[abcdefghijklmnopqrstuvwxyz]%' OR
    Body LIKE '%. [abcdefghijklmnopqrstuvwxyz]%'
    COLLATE Latin1_General_CS_AS
  )
)
ORDER BY PostTypes.Id ASC

Enter Parameters

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