this is my first submit I hope it's ok!
EDITED:
I was seeing another solutions and I saw that they used rank(), partition() and things like that , that I've never saw before :P, hope someone will give some links to learn to make queries that way, and I ...