Subject Re: [firebird-support] Re: Group by date on a timestamp field
Author Dimitry Sibiryakov
On 16 Dec 2005 at 6:57, ra8009 wrote:

>Thanks Adam! Works great. Why can't I use something like:
>
>select cast(myfieldname as Date) as SomeName, count(*)
>from mytablename
>group by SomeName

Because expressions in SELECT are calculated after expressions in
GROUP BY.

--
SY, Dimitry Sibiryakov.