I have one table in MYSQL It has data like
Id Name 1 test 1 test 1 test123 2 test222 3 test333
I want the data like
Id Name RowN
Oracle and MSSQL would support
SELECT Id, Name, row_number() OVER(partition by Id, Name order by Id) AS RowNum FROM table
(answer doesn't help the OP who is on MySQL, but added for completeness)