1.
delete from t1- where rowid in
- ( select rid
- from (
- select rowid rid ,
- row_number() over
- (partition by OWNER ,
- OBJECT_NAME ,
- SUBOBJECT_NAME ,
- OBJECT_ID ,
- DATA_OBJECT_ID ,
- OBJECT_TYPE ,
- CREATED ,
- LAST_DDL_TIME ,
- TIMESTAMP ,
- STATUS ,
- TEMPORARY ,
- GENERATED ,
- SECONDARY
- order by OBJECT_ID) rn
- from t1
- )
- where rn <> 1
- ) ;
2.
- delete from av a
- where rowid not in
- (select max(b.rowid) from av b where a.title = b.title);
3.