I have table that looks like this that has two columns:
- id
- name
I have multiple records and some of them has the same id, I want to delete all the duplicates and only keep one id for each row.
So I have the data like this:
id: 1
name: Test1
id: 1
name: Test1
id: 2
name: Test1
id: 2
name: Test1
id: 2
name: Test1
id: 3
name: Test1
And want it to be like this instead:
id: 1
name: Test1
id: 2
name: Test1
id: 3
name: Test1
Any ideas how to achieve this? I have tried this answer but it returned all rows with id 1...