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.
comunity
isnt a real user, or at least that say his profile.Community
suggest is ok or not. because doesnt make much sense to me.