You are here: Re: Time Over 24 Hours « MsSQL Server « IT news, forums, messages
Re: Time Over 24 Hours

Posted by Martijn Tonies on 09/30/59 11:45

> I am creating a report that has call duration and if i run it over a
> multi-day span the duration is limited to 24 hours and starts over at
> zero. is there a way to not limit hours?
>
> I am usign the following in my select statement:
>
> convert(varchar(12), dateadd(s,
> SUM(ISNULL(Calls.OutgoingCallDuration,0)), '19900101'), 108) AS
> [Outgoing Call Duration]


There _is_ no time over 24 hours.

Think of the problem differently: you're trying to put a _duration_ into
a place that only allows _time_ values. That's not going to fit. Well,
yeah, it fits if the duration is below the length of 24 hours, but that's
it.

Now, given that, a "duration" could never be the same as a "time"
(eg: 01:23 PM).


--
Martijn Tonies
Database Workbench - tool for InterBase, Firebird, MySQL, NexusDB, Oracle &
MS SQL Server
Upscene Productions
http://www.upscene.com
My thoughts:
http://blog.upscene.com/martijn/
Database development questions? Check the forum!
http://www.databasedevelopmentforum.com

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация