Как насчет этого:
create table foo (
a number,
b number,
c number,
constraint pk_foo primary key (a, b, c)
);
insert into foo (a, b, c) values (0, 0, 0);
insert into foo (a, b, c) values (0, 0, 1);
insert into foo (a, b, c) values (0, 1, 0);
insert into foo (a, b, c) values (0, 1, 1);
insert into foo (a, b, c) values (1, 0, 0);
insert into foo (a, b, c) values (1, 0, 1);
insert into foo (a, b, c) values (1, 1, 0);
insert into foo (a, b, c) values (1, 1, 1);
delete from foo t1
where t1.c not in (
select max(t2.c)
from foo t2
group by a, b
)
;
select * from foo;
PS: Вам придется удалить до , удалив c из первичного ключа.