Subject | Re: [firebird-support] sum and time fields |
---|---|
Author | Redlet |
Post date | 2006-05-28T17:59:44Z |
I was not sure of the total_duration field type in :
cast(sum(duration - cast('00:00:00' as time)) as int)
Though, I don't know if this is a good practice :-\.
--
Redlet
> select phone_number, sum(duration - cast('00:00:00' as time)) as total_durationFinally, if I want to to be sure I get an integer, I can write :
> from phone_calls
> group by phone_number
> where ...
cast(sum(duration - cast('00:00:00' as time)) as int)
Though, I don't know if this is a good practice :-\.
--
Redlet