no estoy seguro si funciona en Interbase, pero en Sql Server funciona.
Select Rank= COUNT(*), c1.id_cliente, c1.nombre, c1.fechanac
from Cliente c1, Cliente c2
where c1.id_cliente >= c2.id_cliente
group by c1.id_cliente, c1.nombre, c1.fechanac
order by Rank
|