-8

Here is a query:

Most reputation points gained in a single day.

Enter image description here

As I note that the number 4. ThomasReggi earn 1098 Reputation, but after checking their reputation points it has not. The below is the screenshot.

Enter image description here

10
  • 4
    See: meta.stackoverflow.com/q/267557/3933332
    – Rizier123
    May 3, 2016 at 7:07
  • Please don't destroy the content of your question. Also don't include answers in your question.
    – Rizier123
    May 3, 2016 at 7:08
  • @Rizier123 My Question is different just I place wrong detail now you can see.
    – user5248371
    May 3, 2016 at 7:12
  • 1
    @Rizier123 first of all remove flag because it is different question.
    – user5248371
    May 3, 2016 at 7:16
  • 2
    Exactly, you asked a different question now than your original question. Also since only number 4 doesn't seem to be correct your question isn't why the query doesn't work, but more about what happened with number 4.
    – Rizier123
    May 3, 2016 at 7:18
  • 1
    @Rizier123 now you understand my question.and also upvote if you understand the problem.
    – user5248371
    May 3, 2016 at 7:18
  • 1
    I think possibly it's taking all the "accepts" to be 15 rep, rather than 2 rep (which is what you get when you "accept" an answer to your question (and also doesn't seem to have the same immunity to the rep cap?).
    – TZHX
    May 3, 2016 at 7:22
  • @TZHX it is getting +2 because this user has accept the answer But also this user has accept answer by of all question in one day that's why ?
    – user5248371
    May 3, 2016 at 7:24
  • 2
    Generally, if you come to a forum asking "why doesn't this SQL produce the expected result", you'd be expected to at least read the SQL and understand it, and usually to have written it yourself.
    – TZHX
    May 3, 2016 at 7:26
  • @TZHX now what is the solution for this.
    – user5248371
    May 3, 2016 at 7:35

1 Answer 1

2

That query doesn't take into account that users don't receive 15 reputation points when accepting their own answer on their own question.

I've edited the query to do this, but it's very heavy-handed having to add an additional left join to the Posts table. I'm not familiar enough with SE's schema to know if there's a better way to do this.

2
  • Accepting self-answers does not yield 2 rep AFAIK. May 3, 2016 at 9:12
  • @Fréd You are correct. I'm not sure if this is a change, or just my piss-poor memory.
    – TZHX
    May 3, 2016 at 9:15