I have a table which has duplicate values within it. I now need to put a primary key on this column, but obviously am unable too. Can anyone give me an idea on how I can achive this without losing the data and also to be able to put a primary key on it.
You can use a sequence to create a new primary key and then add a unique index with novalidate to stop anymore duplicate values from being entered. You can lso combine the field with the duplicates with another field and make a concatenated key based on both fields.
Bookmarks