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.

 All Forums
 SQL Server 2000 Forums
 SQL Server Development (2000)
 Convert

Author  Topic 

AskSQLTeam
Ask SQLTeam Question

0 Posts

Posted - 2006-05-11 : 08:21:54
Jay writes "hi i need to convert decimal to minutes.

for example:

I have values as

.150000
.300000
.900000
2.700000
6.300000
9.300000
11.700000
28.800000
36.150000
86.700000
595.500000
1652.850000


How to convert them into Minutes? Please help me"

nr
SQLTeam MVY

12543 Posts

Posted - 2006-05-11 : 08:29:16
select hrs = convert(int,fld), mins = 60.0 * (fld - convert(int,fld))
from tbl


==========================================
Cursors are useful if you don't know sql.
DTS can be used in a similar way.
Beer is not cold and it isn't fizzy.
Go to Top of Page
   

- Advertisement -