Anonymous feedback on a question and its answers

2

Please login or register to vote for this query.

(click on this box to dismiss)

Health

Q&A 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
   p.Id as [Post Link],
   SUM(Case When pf.VoteTypeId = 2 Then 1 ELSE 0 END) AS UpFeedback,
   SUM(Case When pf.VoteTypeId = 3 Then 1 ELSE 0 END) AS DownFeedback,
   p.OwnerUserId AS [User Link],
   p.Score AS Score
FROM
  PostFeedback pf
FULL OUTER JOIN Posts p ON p.Id = pf.PostId
WHERE p.Id = ##PostId##
     OR p.ParentId = ##PostId##
GROUP BY p.Id, p.OwnerUserId, p.Score, p.CreationDate
ORDER BY p.CreationDate

Enter Parameters

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