Tag > ROW_NUMBER
Numbering rows when there are duplicates in the results column
More tags:
Ranking functions, numbering
Equivalents for analytic functions
More tags:
MySQL, window functions