I would like to create an update query that would assign incremental IDs to values in my table. However, duplicate values should receive the same ID.
MyTable:
pk Word ID
1 Dummy null
2 Dummy null
3 dummy null
4 dummy null
5 Hello null
6 Hello null
7 Test7 null
Expected outcome:
pk Word ID
1 Dummy 1
2 Dummy 1
3 dummy 2
4 dummy 2
5 Hello 3
6 Hello 3
7 Test7 4
Thanks in advance!