i have a table with three fields (id, date, time) sample data
1, 01/01/2009, 08:00:00
2, 01/01/2009, 11:00:00
3, 01/01/2009, 13:00:00
4, 01/01/2009, 18:00:00
this data equals 8 hours for that one day.
i want to be able to calculate how many hours per day, should i do this on mysql or on my programming? or what is the best way of doing this?
thank you.