I have this table and I want to split it in three tables so i have names, a relation table between names and orders, and the third which contains just orders. so i think a simple way could be to add a unique number column here
+----+------+-----------------------+-------+--------------+
| id | name | address | phone | order_number |
+----+------+-----------------------+-------+--------------+
| 1 | Joe | Joes Address | 1111 | 1390842 |
| 2 | Paul | Pauls Address | 2222 | 9082309 |
| 3 | Greg | Gregs Address | 3333 | 0928340 |
| 4 | Lucy | Lucys Address | 4444 | 9028340 |
| 5 | Paul | Pauls Address | 2222 | 8958399 |
| 6 | Tom | Toms Address | 5555 | 9084024 |
| 7 | Lucy | Lucys Another Address | 4444 | 9801983 |
| 8 | Paul | Pauls Another Address | 2222 | 0982304 |
+----+------+-----------------------+-------+--------------+
and i want to add a numeric column with a incremental number associated with the unique name value so that the expected result is
+----+------+-----------------------+-------+--------------+---+
| id | name | address | phone | order_number |NID|
+----+------+-----------------------+-------+--------------+---|
| 1 | Joe | Joes Address | 1111 | 1390842 | 1 |
| 2 | Paul | Pauls Address | 2222 | 9082309 | 2 |
| 3 | Greg | Gregs Address | 3333 | 0928340 | 3 |
| 4 | Lucy | Lucys Address | 4444 | 9028340 | 4 |
| 5 | Paul | Pauls Address | 2222 | 8958399 | 2 |
| 6 | Tom | Toms Address | 5555 | 9084024 | 5 |
| 7 | Lucy | Lucys Another Address | 4444 | 9801983 | 4 |
| 8 | Paul | Pauls Another Address | 2222 | 0982304 | 2 |
+----+------+-----------------------+-------+--------------+---+
how can I do it??