select P1.Id as [Id Post], P1.CreationDate as PostDate, P...

0

Please login or register to vote for this query.

(click on this box to dismiss)

Health Meta

Q&A about the site for professionals in medical and allied health fields, students of those professions, related academics, and others with a sound understanding of medicine and healthcare-related sciences

select
  P1.Id as [Id Post],
  P1.CreationDate as PostDate,
  P2.Score,
  P2.CreationDate as AnswerDate,
  datediff(day, P1.CreationDate, P2.CreationDate) as Diff,
  P2.Body
from Posts P1
join Posts P2 on P1.Id = P2.ParentId 
where datediff(day, P1.CreationDate, P2.CreationDate) > 365 
and P1.ViewCount > 1000 
and not P1.OwnerUserId = P2.OwnerUserId 
order by P1.CreationDate desc

Enter Parameters

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