RDBMS Type: MySQL
Returns the rank of the current row within its partition, without gaps.
Peers are considered ties and receive the same rank. This function
assigns consecutive ranks to peer groups; the result is that groups of
size greater than one do not produce noncontiguous rank numbers. For an
example, see the RANK() function description.
This function should be used with ORDER BY to sort partition rows into
the desired order. Without ORDER BY, all rows are peers.
over_clause is as described in