delete from SECURITY_USER_ROLE
where (ACCOUNT) in (select ACCOUNT
from SECURITY_USER_ROLE
group by FIELD_CODE
having count(ACCOUNT) > 1)
and rowid not in (select min(rowid)
from SECURITY_USER_ROLE
group by ACCOUNT
having count(*) > 1)