Marginal short answers with links

1

Please login or register to vote for this query.

(click on this box to dismiss)

Intended to find short answers with links for people to improve, downvote or delete. Additional fields (closed date, and answer count) help identify questions that attract these short answers that should be modified or closed. Find answers with marginal votes (between the min and max) that have a length less than some size and contain a link. Filter out questions that have been locked (many historical lock questions provide false positives).

Stack Overflow

Q&A for professional and enthusiast programmers

select
  a.Score, LEN(a.Body) as length,
  CASE WHEN q.closedDate is null
    THEN ''
    ELSE 'Closed'
  END as Closed,
  CASE WHEN q.CommunityOwnedDate is null
    THEN ''
    ELSE 'CW'
  END as CommWiki,
  q.AnswerCount as AnswerCount,
  a.Id as [Post Link],
  a.body
from
  Posts a,
  Posts q
where
  a.PostTypeId = 2
  and a.Score <=  ##AnswerScoreMax:int##
  and a.Score >= ##AnswerScoreMin:int##
  and LEN(a.Body) < ##AnswerLength##
  and UPPER(a.body) like '%HTTP://%'
  and a.ParentId = q.id
  and not exists (
    select 1
    from
      PostHistory ph
    where
      ph.PostId = q.id
      and ph.PostHistoryTypeId = 14
  )
order by length ASC, a.Score ASC

Enter Parameters

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