Postgresql – psql – Resolve Duplicates without deleting, set max_identifier for the duplicates based on an account_id
I am attempting to address these duplicates without removing the second entry. I am seeking a solution where duplicate records of an identifier would be assigned the maximum identifier value for the account_id. select account_id, identifier, count(*) from books group…