Subject | Re: [ib-support] SQL query: how to group by a function |
---|---|
Author | Rusmin Noer |
Post date | 2001-07-24T06:30:16Z |
From: Mirjam Besamusca <Mirjam.Besamusca@...>
date-field.
You can make a before-post-trigger , so the dummy-field value
is always the accurate month of the date-field.
Rusmin Noer
> I have a SELECT statement in which I want to group the data by the monthof
> a date field, to calculate monthly averages. GROUP BY does not allow theIMHO, Why dont you make a dummy-smallint-field containing the month of the
> month function though - is there any way around this?
date-field.
You can make a before-post-trigger , so the dummy-field value
is always the accurate month of the date-field.
Rusmin Noer