Select EmployeeName,Length
From Callers
Results:
John Doe 94559
John Doe 100720
This is basically in military time, so I believe that this data translates to 9:45 AM EST and 10:07 AM EST. When I add (Select dbo.convertIntToTime(Length)*100) I'm able to get it into regular time format. When I try (Select EmployeeName,AVG(Length) I get the average but in integers and I'm not sure how to convert it to time format.
Select EmployeeName,AVG(Length)
From Callers
Group By EmployeeName
Results:
John Doe 106546
Tom Cruise 116275
Lebron James 156971
Any help would be appreciated!
Those are not military time numbers. There is no 1569 in military or anytime for that matter. Military is 0000-2300 where 0000 would be 12:00AM and 2300 would be 11:00PM.
So 156971, if it was military time would be 3:69 PM and 71 seconds. Not possible.
Are you sure the time is being stored that way you think?
I would suggest changing the way it’s stored to a time stamp, would make it much easier to use.