SELECT q.id, a.id, a.CreationDate FROM Posts q LEFT JOIN ...

0

Please login or register to vote for this query.

(click on this box to dismiss)

Anime and Manga

Q&A for anime and manga fans

SELECT 
  --CAST(
  --  COUNT(a.id)
  --  AS float
  --) / Count(*) * 100 AS AcceptedPercentage
  q.id, a.id, a.CreationDate
FROM
    Posts q
  LEFT JOIN
    Posts a ON q.AcceptedAnswerId = a.Id
  AND
    a.PostTypeId = 2

Enter Parameters

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