What percentage of open, zero or greater scored, answered questions are deleted by their author within 24 hours of posting?
When can’t I delete my own post?
You can’t delete your own question when it:
- has an upvoted answer, or
- has an accepted answer, or
- has multiple answers (even if there are no upvotes)
The requirement is that the author deleted their own question, so I'm defining "answered" here as: Has one answer, not upvoted or accepted, that was not deleted at the time the question was deleted.
I'm trying to filter out questions that would be deleted for a reason other than the author got the answer they were looking for, which is why I imposed the restriction of the question being open, and zero or greater scored.
I attempted bugged someone else to attempt to use SEDE to figure this out, but unfortunately the owner is not in the postswithdeleted table:
select top 100 *
from postswithdeleted
where deletiondate is not null
-- SEDE
Rene kept trying and figured out that we can find some information about questions deleted shortly after receiving an answer:
select 'site://q/' + cast(q.id as nvarchar) +'| question' as [link]
, q.creationdate as [q create]
, q.deletiondate as [q del]
, a.creationdate as [a create]
, a.deletiondate as [a del]
, datediff(n, a.creationdate, q.deletiondate) as [q del after a]
from postswithdeleted a
inner join postswithdeleted q on a.parentid = q.id
where a.deletiondate is not null
and q.deletiondate is not null
and datediff(n, a.creationdate, q.deletiondate) < 60
order by datediff(n, a.creationdate, q.deletiondate) desc
-- SEDE