On 10/14/2017 12:32 AM, legrand legrand wrote:
DELETE FROM table_with_duplicates AS T1 USING table_with_duplicates AS T2 WHERE T1.column_1 = T2.column_1 AND T1.column_2 = T2.column_2 AND T1.column_3 = T2.column_3 AND T1.row_num < T2.row_num
Thank you, I actually thought about that at first but it seemed "too easy" and I was looking for some solution with JOIN.
Anyway, this seems to work great. Thanks, Igal -- Sent via pgsql-general mailing list (pgsql-general@xxxxxxxxxxxxxx) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-general