justaphase
asked on
Total days hours and minutes
Hello experts,
I have a table with two columns, the initial date and the final date.
I know how calculate days hours and minutes between them with datediff.
But i need to calculate the total days, hours and minutes of all rows in the end.
inidate enddate result
01/01/2014 01:30 02/01/2014 03:00 1d 1h 30m
03/01/2014 01:30 05/01/2014 03:00 2d 1h 30m
Total: 2d 3h 00m
Anyone know a easy way to do this?
Thx in advanced,
Miguel
I have a table with two columns, the initial date and the final date.
I know how calculate days hours and minutes between them with datediff.
But i need to calculate the total days, hours and minutes of all rows in the end.
inidate enddate result
01/01/2014 01:30 02/01/2014 03:00 1d 1h 30m
03/01/2014 01:30 05/01/2014 03:00 2d 1h 30m
Total: 2d 3h 00m
Anyone know a easy way to do this?
Thx in advanced,
Miguel
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Thx guys :)
The math for the total is the same as for the row. Thus the running sum sample..
ASKER
I realized that later.. but in the mean while BriCrowe gave the all answer.
Thx friend.
Thx friend.
ASKER
Thank you fo your post.
But that does what i already know, like i said in the post.. you're calculating the total days, hours and mins in each row.
What i need is to have a final sum of all rows.