answers with code blocks

0

Please login or register to vote for this query.

(click on this box to dismiss)

Open Data

Q&A for developers and researchers interested in open data

select
  top 100
  Post.Id as [Post Link],
  Post.Body,
  PostTypes.Name as [Type],
  Post.OwnerUserId as [User Link],
  Post.Score,
  Post.CreationDate,
  coalesce(Post.Tags, Parent.Tags) as [Tags]
from Posts as Post
join PostTypes on Post.PostTypeId = PostTypes.Id
left join Posts as Parent on Post.ParentId = Parent.Id
where Post.Body like '%<code>%' AND Post.AcceptedAnswerId = Parent.Id

Enter Parameters

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