Skip to content
Advertisement

SQL query to convert duplicate column values to unique value

Need help to come up with an update query to make the value column to be unique values. I use Postgres.

The update should convert the above table to be:

Advertisement

Answer

I believe the following update statement will achieve the result you are seeking.

User contributions licensed under: CC BY-SA
10 People found this is helpful
Advertisement