On 7/12/05, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
> you'll need to look at ticket_history. But search for all the rows that havfe 
> that same ticket_id.
> After that, you just need to find the create action and the close... and do 
> the math.

So here's my data. The ticket was created on 11-19 10:06 and closed
11-19 10:46. I am not sure how I can do the math with a SQL statement.
 I need to do something like this
select timediff(2004-11-19 10:46:06 ,2004-11-19 10:06:0)


| ticket_id | create_time         | change_time  
|      1444 | 2004-11-19 10:06:07 | 2004-11-19 10:06:07 |
|      1444 | 2004-11-19 10:06:07 | 2004-11-19 10:06:07 |
|      1444 | 2004-11-19 10:06:07 | 2004-11-19 10:06:07 |
|      1444 | 2004-11-19 10:44:15 | 2004-11-19 10:44:15 |
|      1444 | 2004-11-19 10:44:15 | 2004-11-19 10:44:15 |
|      1444 | 2004-11-19 10:46:06 | 2004-11-19 10:46:06 |
|      1444 | 2004-11-19 10:46:06 | 2004-11-19 10:46:06 |
|      1444 | 2004-11-19 10:46:06 | 2004-11-19 10:46:06 |
|      1444 | 2004-11-19 10:46:06 | 2004-11-19 10:46:06
_______________________________________________
OTRS mailing list: otrs - Webpage: http://otrs.org/
Archive: http://lists.otrs.org/pipermail/otrs
To unsubscribe: http://lists.otrs.org/cgi-bin/listinfo/otrs
Support oder Consulting für Ihr OTRS System?
=> http://www.otrs.de/

Reply via email to