You can't directly find that out in the UI. But if you have the postid of either your answer or the question it is on and plug it into a query on the Stack Exchange Data Explorer, magic can happen.
The votes table holds accept votes on answers (votetypeid = 1). The votes table still holds the vote records for deleted posts. Most other tables don't.
Because we're talking about deleted posts we can't use the Posts table but need to use PostsWithDeleted. That table includes deleted posts but only has a limited fields populated.
This query returns a link to an accepted answer that on clicking puts the focus on your answer.
select concat('site://q/', pwd.id, '| Accepted Answer ', pwd.id) [Link]
from votes v
inner join postswithdeleted pwd on pwd.id = v.postid
where (pwd.id = ##postid?65854898## -- or 65858840
or pwd.parentid = ##postid?65854898##)
and votetypeid = 1 -- accept
So using the above query allows you to find out which answer on a deleted question was accepted.
If you want to process 50 postids at once use the second query and these steps:
Search for your deleted posts
Open the developer console of your browser
Paste below code block and hit enter
(function() {
var ids = [];
$('.result-link a').each((a,c) => {
var b = $(c);
ids.push(Number.parseInt(b.attr('href').split('/')[2]));
});
console.log(JSON.stringify(ids));
})();
Goto SEDE, Fork the query and copy the result from the developer console (the [1,2,3] bit) in the @json variable (fork the query first)
declare @json nvarchar(max)
-- paste the result from your console here between the ' '
set @json = '[42, 1337]'
select concat('site://q/', pwd.id, '| Accepted Answer ', pwd.id) [Link]
from votes v
inner join postswithdeleted pwd on pwd.id = v.postid
inner join OpenJson(@json) sel on (sel.value = pwd.id or sel.value = pwd.parentid)
where votetypeid = 1 -- accept
and pwd.deletiondate is not null
Run and find the result in the second result tab(click the 2 in the result tab)
repeat for all pages in the search result
Keep in mind SEDE is updated once a week on Sunday.
Use the awesome SEDE Tutorial written by the unforgettable Monica Cellio.
Say "Hi" in SEDE chat.
user:me isaccepted:yes deleted:yes
in his comment (which he has deleted now) which looked very promising but unfortunately it did not work. – Arvind Kumar Avinash Feb 14 at 21:11Accepted
answer. The requirement here is to find all my deleted answers which were also accepted. Regarding your remark,...looks more than fishy...
, you've been active on SO for almost three times longer than I am and therefore I expect that you should check the timeline of the question and its answers before posting such hostile messages. – Arvind Kumar Avinash Feb 14 at 21:59