Hi @Polachan Paily ,
Please refer to:
create table #time (intime decimal (10,2))
insert into #time values(7.5),(17.50),(.45),(1.00)
select intime,cast(replace(intime,'.',':') as time(0)) [Time]
from #time
Output:
intime [Time]
7.50 07:50:00
17.50 17:50:00
0.45 00:45:00
1.00 01:00:00
Date and time conversion can use CAST and CONVERT (Transact-SQL).The time (Transact-SQL) keyword in TSQL can define different forms of time.
If you have any question, please feel free to let me know.
Regards
Echo
If the answer is helpful, please click "Accept Answer" and upvote it.
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.