Subject | Re: [firebird-support] Sum field time |
---|---|
Author | Martijn Tonies |
Post date | 2008-10-01T14:13:44Z |
Hi,
The data type TIME stored "time of day", which is different.
If you have chosen to store "time allotted", basically "duration" into
a TIME field, then you have choosen the wrong data type.
Martijn Tonies
Database Workbench - tool for InterBase, Firebird, MySQL, NexusDB, Oracle &
MS SQL Server
Upscene Productions
http://www.upscene.com
My thoughts:
http://blog.upscene.com/martijn/
Database development questions? Check the forum!
http://www.databasedevelopmentforum.com
> I would like the following result.You cannot "sum" time, you can only "sum" duration.
>
> 01:00 + 03:30 + 01:45 = 06:15
>
> would return only the sum
>
> no matter whether it is morning or evening, this field saves time
> allotted and not hours
The data type TIME stored "time of day", which is different.
If you have chosen to store "time allotted", basically "duration" into
a TIME field, then you have choosen the wrong data type.
Martijn Tonies
Database Workbench - tool for InterBase, Firebird, MySQL, NexusDB, Oracle &
MS SQL Server
Upscene Productions
http://www.upscene.com
My thoughts:
http://blog.upscene.com/martijn/
Database development questions? Check the forum!
http://www.databasedevelopmentforum.com