Formula una domandaFormula una domanda
 

Domandaconvert minutes to hours

Tutte le risposte

  • venerdì 24 febbraio 2006 15.42Jamie ThomsonMVP, ModeratoreMedaglie utenteMedaglie utenteMedaglie utenteMedaglie utenteMedaglie utente
     

    Not sure what this has got to do with SSIS but its an interesting little puzzle for a Friday afternoon anyway.

    Paste the following into SSMS/QA and run it:

    declare @mins int

    set @mins = 130

    select cast(@mins/60 as varchar(5)) + ':' + RIGHT('0' + cast(@mins%60 as varchar(2)), 2)

     

    There are probably other, better, ways!!!

     

    -Jamie