Subject Re: [firebird-support] Additional optimalization
Author Dimitry Sibiryakov
> Any idea?

I would decompose it into inside of FOR SELECT loop.

SY, SD.