Dup Questions

0

Please login or register to vote for this query.

(click on this box to dismiss)

Engineering

Q&A for professionals and students of engineering

SELECT TOP 10
  p.Id AS Post,
  p.Title AS Question,
  p.AcceptedAnswerId AS AcceptedAnswer,
  a.Answer AS MostVotedAnswer,
  a.Votes AS Votes
FROM Posts p
INNER JOIN PostHistory h ON p.Id = h.PostId
INNER JOIN (
  SELECT
    answers.ParentId AS Question,
    answers.Id AS Answer,
    answers.Score AS Votes
  FROM Posts answers
) AS a ON p.Id = a.Question
WHERE (
  p.Id = 14
)

Enter Parameters

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