How can I search for closed questions that have been answered by a particular user?
3 Answers
I found this script Answers to closed questions for user
But there is a line that prevents all results from showing up
questions.ClosedDate < answers.CreationDate
I edited it into this script and it seems to work.
-
$\begingroup$ This seems to work! Would it be possible to use the search window on Cross Validated to achieve that? $\endgroup$ Feb 22 at 9:43
-
2$\begingroup$ The search uses an inner join of two selections from the posts table. I don't believe that the search window is able to do that. It seems to only perform a single query of the type 'select ... from ... where ...'. $\endgroup$ Feb 22 at 9:57
https://stats.stackexchange.com/search?q=user%3A53690+is%3Aanswer+closed%3Ayes
For details, please consult the search help page.
To find a user's identifying number, look them up on the Users page.
-
1$\begingroup$ Whuber, does it return the answers to the questions closed? It only returns the questions that were closed. After all, there are no "closed" answers. $\endgroup$ Feb 22 at 13:57
-
$\begingroup$ @User1865345 As always, it links to them all. If you want more flexibility, then use the Data Explorer. $\endgroup$– whuber ModFeb 22 at 13:58
-
$\begingroup$ This only seems to return questions by user X that were closed. I am looking for answers by user X of questions that were closed. $\endgroup$ Feb 22 at 15:07
-
1$\begingroup$ Relevant Meta SO post: Cannot search for answers on closed questions. $\endgroup$ Feb 22 at 15:22
-
2$\begingroup$ That is indeed confusing. Thank you for the clarification. The Meta post found by @User1865345 offers an explanation. $\endgroup$– whuber ModFeb 22 at 16:42
closed:yes answers:1...
but this of course doesn't do the job. $\endgroup$