Hello,
Il 28/06/2024 13:19, Tomasz Tyrakowski ha scritto:
If you wish to delete both occurences of CARLA (and that's how I understood your description), this should work:This query works fine to de-duplicate. That's effectively I want.
delete from TABLE
where NOME in (
select NOME from TABLE
group by NOME
having count(*) > 1
)
Logically from SQL standard it removes all rows for values of NOME which do have duplicates.
If there is one left over, it is a specific implementation dependent side effect.