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
  questions.Id AS QuestionId,
  questions.Title AS QuestionTitle,
  SUBSTRING(history.Text, CHARINDEX('[', history.Text), CHARINDEX(']', history.Text) - CHARINDEX('[', history.Text) + 1) AS Duplicate,
  history.Text AS History,
  questions.AcceptedAnswerId AS AcceptedAnswer,
  answers.Id AS MostVotedAnswer,
  answers.Score AS Votes
FROM Posts questions
INNER JOIN Posts answers ON answers.ParentId = questions.Id
INNER JOIN PostHistory history ON history.PostId = questions.Id
WHERE (
  questions.Id = 249
) AND (
  history.PostHistoryTypeId = 10
)
ORDER BY questions.Id

Enter Parameters

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