Hello, I run the SQL query below to delete duplicates from a table. The subquery is used to identify the duplicated rows (row_num is a BIGSERIAL column). /** delete older copies of duplicates */ Can anyone tell me how to rewrite that query to use the USING
clause and hopefully remove the subquery? The documentation mentions USING but there is no example and the only examples I found online are very trivial. Thanks, Igal Sapir
|