Help converting Oracle statement to SQL2K

Associate
Joined
26 Jun 2003
Posts
343
Location
Deep in my underground Lair...
I need some help converting this statement to sql2k from Oracle as sql2k doesnt use floor etc.. P.duration and HEURE are my variables. Basically I'm trying to get my value for p.duration to be returned as hour:minute:second

Here is the Oracle statement:

'floor(sum(P.duration)/10/60/60) as HEURE,
'floor(sum(P.duration)/10/60) - floor(sum(P.duration)/10/60/60) * 60 as MINUTE,
'sum(P.duration)/10 - (floor(sum(P.duration)/10/60) - floor(sum(P.duration)/10/60/60) * 60 ) * 60 as SEC


Cheers,
 
Back
Top Bottom