

우선 나는
select e1.id, e1.parent_id, e1.genotype, e2.genotype as parent_genotype from ecoli_data e1 join ecoli_data e2 on e1.parent_id = e2.id self join 으로 parent_genotype값을 도출하고,
id, parent_id, genotype, parent_genotype 모든것을 찍어봤다. 그 다음에 조건으로 집어넣어서 비교했다.

genotype과 parent_genotype 값을 비교해서 옳은 조건만 추출하기!!
select e1.id, e1.parent_id, e2.genotype as parent_genotype
from ecoli_data e1 join ecoli_data e2 on e1.parent_id = e2.id
where (e1.genotype & e2.genotype >= e2.genotype)
order by e1.id