Skip to main content
Search type Search syntax
Tags [tag]
Exact "words here"
Author user:1234
user:me (yours)
Score score:3 (3+)
score:0 (none)
Answers answers:3 (3+)
answers:0 (none)
isaccepted:yes
hasaccepted:no
inquestion:1234
Views views:250
Code code:"if (foo != bar)"
Sections title:apples
body:"apples oranges"
URL url:"*.example.com"
Saves in:saves
Status closed:yes
duplicate:no
migrated:no
wiki:no
Types is:question
is:answer
Exclude -[tag]
-apples
For more details on advanced search visit our help page
Results tagged with
Search options answers only not deleted user 9357

Questions about Stack Exchange APIs, Stack Exchange Data Explorer (SEDE), or any hacks to work with Stack Exchange sites.

6 votes

More than one answer by the same user

You don't need to perform any join at all. SELECT ParentId AS [Post Link] , OwnerUserId AS [User Link] , COUNT(Id) AS Answers FROM Posts WHERE ParentId IS NOT NULL …
200_success's user avatar
10 votes
Accepted

Bookmarklet for selecting code snippets on Code Review

You inject the button using jQuery.prepend(), which inserts the button as the first child of the .prettyprint code block. Therefore, when the bookmarklet is invoked, and it selects the contents of th …
200_success's user avatar
7 votes

Bookmarklet for selecting code snippets on Code Review

Since StackExchange can refresh page contents dynamically, the following sequence of events is possible: Page contains some code block(s). …
200_success's user avatar
5 votes
Accepted

Query for your Answer Progress

There is a simple way to calculate rolling averages in SQL, with a caveat. SELECT CreationDate , Score , avg(CAST(Score AS FLOAT)) OVER ( ORDER BY CreationDate ROWS BETWEE …
200_success's user avatar
8 votes
Accepted

Tag badges per user SEDE query

Implementation The query is quite well written for what it does. I just have a few minor nitpicks about its implementation. The FROM, GROUP BY, and ORDER BY clauses are all subsidiary to the SELECT …
200_success's user avatar
5 votes

Find Users by Most Badges

group by and order by are both subordinate clauses to select, and should therefore be indented at the same level as from and where.
200_success's user avatar
2 votes
Accepted

Stack Exchange Data Explorer query to find upvoted questions with only downvoted answers

Answering your questions in reverse order… Your HAVING clause is clearer than than an anti-join condition in the WHERE clause. It is also more efficient — tick the "Include execution plan" checkbox …
200_success's user avatar
4 votes

1st questions with answers within X hours

Race condition If an established user asks a question at the exact same instant that a new user makes a first post, it's possible that the established user's question would be treated as a first post …
200_success's user avatar
10 votes

Top users under age 30, sorted by age, with rank

It's not obvious what this query does without reading the code. You should add a title and description in Stack Exchange Data Explorer. I also find the columns illogically arranged: I would expect …
200_success's user avatar
4 votes

Finding questions to answer

Due to the way you used the ##QuestionTag1## parameter, you have to enter 'java' in the input field (with the single quotes) rather than java. I'm pretty sure that that is an indicator of an SQL inje …
200_success's user avatar
22 votes
Accepted

Excuse me, how many of you are new here? Mind if I JOIN you?

Technically, the full outer join is insufficient. If during a certain week there was not a single user who posted their first question or answer, the plot for that week needs to be 0. It would be mi …
200_success's user avatar
3 votes

SE Data Explorer Query: Average score for questions and answers, by tag

I think that the rounding behaviour is a bug. The output looks just fine if you tick the "Text-only results" checkbox. Simplified tag canonicalization: WITH CanonicalTags AS ( SELECT Master.Id …
200_success's user avatar
17 votes
Accepted

Tool for creating CodeReview questions

I would encourage you to produce more explicit output, particularly with the filenames. If I wanted to reverse the process and scrape the code into files on my machine, using a Python script such as …
200_success's user avatar
14 votes

Tool for creating CodeReview questions

since you used your program to produce this question itself, I suspect that your tool is responsible for introducing the bug in the immediately following line: ps.print(" "); // format as code for StackExchange
200_success's user avatar
2 votes

Top Active Answerers on a Stack Exchange site

GROUP BY Users.Id is sufficient. There is no reason why you also need to GROUP BY DisplayName.
200_success's user avatar

15 30 50 per page