Orphaned Questions

0

Please login or register to vote for this query.

(click on this box to dismiss)

GIS

Q&A for cartographers, geographers and GIS professionals

SELECT
  p.Id AS [Post Link],
  p.LastActivityDate,
  p.CreationDate,
  u.DisplayName AS OwnerName,
  u.CreationDate AS UserCreationDate,
  u.LastAccessDate AS UserLastAccessDate,
  CAST(u.LastAccessDate-p.CreationDate AS INT) AS ActiveDaysSincePost
FROM Posts p
JOIN PostTypes pt ON pt.Id = p.PostTypeId
JOIN Users u ON u.Id = p.OwnerUserId
WHERE AnswerCount = 0
  AND pt.Name = 'Question'
  AND p.ClosedDate IS NULL
  AND p.DeletionDate IS NULL
  AND p.CommunityOwnedDate IS NULL
  AND (SELECT COUNT(zp.Id) FROM Posts zp WHERE OwnerUserID = p.OwnerUserID) = 1
ORDER BY u.LastAccessDate-p.CreationDate ASC

Enter Parameters

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