Please start any new threads on our new site at http://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

Our new SQL Server Forums are live! Come on over! We've restricted the ability to create new threads on these forums.

SQL Server Forums
Profile | Active Topics | Members | Search | Forum FAQ
 
Register Now and get your question answered!
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 SQL Server 2000 Forums
 SQL Server Development (2000)
 Convert Seconds
 Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

whitmoj
Yak Posting Veteran

United Kingdom
68 Posts

Posted - 12/01/2008 :  09:31:53  Show Profile  Reply with Quote
Can any one advise how to convert seconds (stored as a decimal) to hours min's and sec's

Whitmoj
If you are in a hurry you will never get there

visakh16
Very Important crosS Applying yaK Herder

India
52326 Posts

Posted - 12/01/2008 :  09:36:07  Show Profile  Reply with Quote
SELECT secvalue/3600 as hours,(secvalue%3600)/60 as minutes,(secvalue%3600)%60 as seconds from yourtable
Go to Top of Page

whitmoj
Yak Posting Veteran

United Kingdom
68 Posts

Posted - 12/01/2008 :  10:11:27  Show Profile  Reply with Quote
Many Thanks

Whitmoj
If you are in a hurry you will never get there
Go to Top of Page

visakh16
Very Important crosS Applying yaK Herder

India
52326 Posts

Posted - 12/01/2008 :  10:25:19  Show Profile  Reply with Quote
Cheers
Go to Top of Page
  Previous Topic Topic Next Topic  
 Reply to Topic
 Printer Friendly
Jump To:
SQL Server Forums © 2000-2009 SQLTeam Publishing, LLC Go To Top Of Page
This page was generated in 0.04 seconds. Powered By: Snitz Forums 2000