SELECT p.Id, p.PostTypeId, p.AcceptedAnswerId, a.Id, p.Cr...

0

Please login or register to vote for this query.

(click on this box to dismiss)

Ask Patents Meta

Q&A about the site for people interested in improving and participating in the patent system

SELECT
  p.Id,
  p.PostTypeId,
  p.AcceptedAnswerId,
  a.Id,
  p.CreationDate,
  a.CreationDate,
  DATEDIFF(ss, p.CreationDate, a.CreationDate) AS opentime
FROM
    Posts p
  INNER JOIN
    Posts a ON p.AcceptedAnswerId = a.Id
WHERE
    p.CreationDate BETWEEN '2017-01-01' AND '2017-12-31'

Enter Parameters

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