Hello iam a newbie in sql and i need your help.
I have the following table:
start_date | end_date
02.08.2012 09:27:19 | 06.08.2012 07:53:00
06.08.2012 06:58:58 | 06.08.2012 13:42:33
05.06.2012 14:35:58 | 05.06.2012 14:42:31
I need to display the duration between start_date and end_date.
I did it like this: end_date - start_date = duration
but it displays a decimal value (see below table - field duration).
I need field duration to display like this: HH:MM:SS - not decimal.
start_date | end_date | duration | I need it like this
02.08.2012 09:27:19 | 06.08.2012 07:53:00 | --> 3.93450231481481 | 94:25:41
06.08.2012 06:58:58 | 06.08.2012 13:42:33 | --> 0.280266203703704 | 06:43:35
05.06.2012 14:35:58 | 05.06.2012 14:42:31 | --> 0.0045486111111... | 00:06:33
If something is uncertain i will try to explain. I hope you can help me. Have a nice day.