Dup Questions

0

Please login or register to vote for this query.

(click on this box to dismiss)

Stack Overflow en español

Preguntas y respuestas para programadores y profesionales de la informática

SELECT TOP 10 
  p.Id AS Post,
  p.Title AS Question,
  p.AcceptedAnswerId AS Answer,
  SUBSTRING(h.Text, CHARINDEX('[', h.Text), CHARINDEX(']', h.Text) - CHARINDEX('[', h.Text) + 1) AS Duplicate,
  COUNT(v.PostId) AS Votes,
  h.Text
FROM Posts p
INNER JOIN PostHistory h ON p.Id = h.PostId
INNER JOIN Votes v ON p.Id = v.PostId
WHERE h.Text LIKE '{"OriginalQuestionIds":%'
GROUP BY p.Id, p.Title, p.AcceptedAnswerId, h.Text, h.Text

Enter Parameters

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