Aunque no concosco muy bien tu estructura de tus tablas puedo decirte que talves esta parte
Código SQL
[-] group by idcredito having count(*) >= 3)
es la que esta haciendo tardar mucho.
Haber prueba asi:
Código SQL
[-]select * from creditos where idcredito in
(select idcredito from cuotascreditos cc
where idestadocuota in(4,7) and
(select count(*) from cuotascreditos aux where aux.idcredito=cc.idcredito)>=3);
Saludos...
__________________
"Pedid, y se os dará; buscad, y hallaréis; llamad, y se os abrirá." Mt.7:7