1

I think I made a mistake:

https://stackoverflow.com/posts/16234983/revisions

I thought I was just editing the code, so I added the 4 spaces to apply code formatting.

Then I realize the Community suggested edit removed the original question and put a query instead. Then I looked to his profile and realized Community is a bot or something?

But now I'm not sure if should support Community or rollback the suggested edit because the use of rownumber isn't even correct on that code.

9
  • Yes, but comunity isnt a real user, or at least that say his profile. Sep 11, 2015 at 20:15
  • @ryanyuyu My question is regarding if Community suggest is ok or not. because doesnt make much sense to me. Sep 11, 2015 at 20:17
  • 2
    No, that edit was not okay; it replaced the question with an answer. If you look at the suggested edit, both of the reviewers before you voted to reject it.
    – resueman
    Sep 11, 2015 at 20:20
  • @JuanCarlosOropeza my bad, I misinterpreted you question. My other comments aren't really relevant to your question.
    – ryanyuyu
    Sep 11, 2015 at 20:21
  • 4
    When you see an edit suggested by "Community" that just means it was suggested by a user who either isn't logged in or doesn't have an account. You don't ever have to agree with an edit just because it says "Community" and has a diamond- That's just the account that takes credit for anonymous edits, among other things.
    – Kendra
    Sep 11, 2015 at 20:38
  • @Kendra How can you suggest edit without beign logged? I rememenber I couldnt even post comment in other users post when I start Sep 11, 2015 at 21:12
  • @JuanCarlosOropeza Anyone can suggest an edit- The edit link is only disabled in two scenarios: A user with less than 2k rep lands on a question with a pending suggested edit (A 2k+ user that clicks the link then is taken to the review page for that edit) or a user with less than 2k rep on meta (there are no suggested edits on meta.) You can check this yourself by going incognito the next time you find a question on SO you wish to edit. (Comments are not peer reviewed like suggested edits are. This is why you need rep to post them- To prevent spam comments.)
    – Kendra
    Sep 11, 2015 at 21:14
  • 1
    @Kendra: The edit link is also disabled on locked posts and on deleted questions. But those are largely beside your good points. Sep 12, 2015 at 2:17
  • @NathanTuggy I knew I forgot some scenario somewhere! Thanks.
    – Kendra
    Sep 12, 2015 at 3:01

1 Answer 1

5

What happen was a user made an edit to change the question from

How to find third or nth maximum salary from salary table(EmpID,EmpName,EmpSalary) in Optimized way?

To

select * from (select emp1.*, rownum rw from (select * from employee order by salary desc ) emp1 ) where rw=3;

You decided to improve the edit to format the code correctly so the suggested edit then was automatically approved and then committed by the Community♦ user and then your edit was applied.

That being said you should not have approved that edit.

select * from (select emp1.*, rownum rw from (select * from employee order by salary desc ) emp1 ) where rw=3;

Is not a question as there is just a block of code and completely it changed what the question was asking. The question wants the 3rd or Nth but the editor gave the OP a possible answer for the 3rd max and their edit comment was:

Please see the code , It may help you to find 3rd max salary.

You should have rejected it for

This edit was intended to address the author of the post and makes no sense as an edit. It should have been written as a comment or an answer.

Or

This edit deviates from the original intent of the post. Even edits that must make drastic changes should strive to preserve the goals of the post's owner.

One a side note I looked through some of your edit reviews and I just want to point out a couple that I would of handled differently.

2
  • Thanks for your suggestion. I fix the second one. The first one I remember even looking for some dictionary to see if make sense. But yes I have to make an extra effort with capitalization. But if you Glorfindel edit still make my own mistakes Sep 11, 2015 at 22:53
  • @JuanCarlosOropeza Don't be two worried about a mistake or two. No one is perfect and I know I have made some mistakes. I am just trying to help you to be a better reviewer/editor. Sep 11, 2015 at 23:24

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .