Postgresql – why my sql query is not correctly updating specific records in postgres db
I have 2 postgres tables like below table 1 A,table2_id,C 1,2,3 4,5,6 7,5,8 table 2 ID, name 2,'cat' 5,'dog' 9,'fish' I need to replace id of dog with the id of fish inside table1 column table2_id. At the end, table…