Intente utilizar esta consulta:
select * from table
where id not in (select id_parent from table);
Aquí hay un ejemplo:http://sqlfiddle.com/#!2/7de26/1
Intente utilizar esta consulta:
select * from table
where id not in (select id_parent from table);
Aquí hay un ejemplo:http://sqlfiddle.com/#!2/7de26/1