Please start any new threads on our new
site at https://forums.sqlteam.com. We've got lots of great SQL Server
experts to answer whatever question you can come up with.
Author |
Topic |
jhaney
Starting Member
33 Posts |
Posted - 2010-12-22 : 09:40:36
|
I currently have 2 columns one is a start time and one is an end time. I need to subtract the start time form the end time and then average the results. here is an example of the data.End Start6:50 PM 6:43 PM6:28 PM 6:14 PM6:05 PM 5:48 PM6:05 PM 5:50 PM5:17 PM 5:17 PM5:17 PM 5:17 PMUsing this expression I can get the following results=cdate(Fields!END.Value) - cdate(Fields!START.Value)End Start Results6:50 PM 6:43 PM 00:02:006:28 PM 6:14 PM 00:14:006:05 PM 5:48 PM 00:17:006:05 PM 5:50 PM 00:15:00I tried this expression for the average of the group =Avg(cdate(Fields!END.Value) - cdate(Fields!START.Value))It give me this 7200000000 instead of 00:12:00I can do the math and get the minutes but I would like to get it in 24 hr format since some of my results will be more than 60 minutes. Any help on this would be great. ThanksJoshua |
|
jhaney
Starting Member
33 Posts |
Posted - 2011-04-12 : 11:28:38
|
Anyone have any ideas on this?Thanks in advanceJoshua |
|
|
|
|
|