do u have any doc on dense_rank and over
Here