select top 100 Questions.Id, Answers.Id, substring(Answer...

0

Please login or register to vote for this query.

(click on this box to dismiss)

Stack Overflow

Q&A for professional and enthusiast programmers

-- Enter Query Title
-- Enter Query Description
select top 100 Questions.Id, Answers.Id, substring(Answers.Body, 0, 100)
from Posts as Questions
join Posts as Answers on Answers.ParentId = Questions.Id
where
    Questions.OwnerUserId = Answers.OwnerUserId
    and
    (
        Questions.AcceptedAnswerId is null
        or
        Questions.AcceptedAnswerId != Answers.Id
    )

Enter Parameters

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