Subject Re: [ib-support] Problem With Firebird RC1
Author Nando Dessena

> You can't. There has never been support in InterBase for group by operations
> on user defined functions. An attempt was made to add this in Beta 2. The
> feature just didn't work consistently and has now been removed.

AFAICT, he is not grouping by the function.