Ratio Answers Accepted Withtin 30 Minutes Over Questions With Accepted Answers

0

Please login or register to vote for this query.

(click on this box to dismiss)

Stack Overflow

Q&A for professional and enthusiast programmers

SELECT 
(
  SELECT
    COUNT(Posts.Id)
  FROM Posts
  INNER JOIN Posts as Ans
  on Ans.Id = Posts.AcceptedAnswerId
  WHERE DATEDIFF_BIG(minute,Posts.CreationDate,Ans.CreationDate) < 30
), 
(
  SELECT
    COUNT(Posts.Id)
  FROM Posts
  INNER JOIN Posts as Ans
  on Ans.Id = Posts.AcceptedAnswerId
)

Enter Parameters

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