| How to calculate SUM cumulative times type of string? [message #768509] |
Tue, 20 December 2011 04:34  |
Missing name Missing name Messages: 58 Registered: October 2011 |
Member |
|
|
I have cumulative times in format HH:mm:ss and they display how much time did some record been in specific status. In database they are all STRING values.
How to calculate SUM of that times? should I use some sql expression or some BIRT function for this?
This is the example with statuses.
For this example I must exclude from result statuses CLOSED and ADDINFNDD.
So the final result should be : 00:01:59+00:00:05+34:20:58+00:00:07 = 34:23:09
Thanks for help!!
[Updated on: Tue, 20 December 2011 04:45] Report message to a moderator
|
|
|
|
|
|
|
| Re: How to calculate SUM cumulative times type of string? [message #774248 is a reply to message #772693] |
Tue, 03 January 2012 10:28  |
Jason Weathersby Messages: 9167 Registered: July 2009 |
Senior Member |

|
|
I did not see any like clauses in your query. In my example I use:
select *
from products
where productname like ?
You may also want to verify that you have the string quoted like:
select *
from products where productcode like'%'
Jason
On 12/30/2011 6:23 AM, cankovicv wrote:
> Hi Jason,
>
> sorry I can not open your example. Here is my report if you can find the problem. When I use ? to select all companies I am getting blank result.
> I think that data set is OK in general, probably it is the problem with like query.
>
> Thanks for help
>
Jason Weathersby
BIRT Exchange
|
|
|
Powered by
FUDForum. Page generated in 0.01695 seconds