Tente isso, acho que vai funcionar no FB:
SELECT avg(valor)
   FROM (SELECT FIRST 3 teste5.valor FROM teste5
          ORDER BY teste5.id desc)
Em 29/03/2010 16:01, Contabiliza - Cristiano escreveu:
> SELECT avg(teste5.valor) FROM teste5
>
> WHERE rownum between 1 and 3 order by teste5.id desc