Proposed Answer MS Access to SQL server 2008

  • Thursday, September 20, 2012 6:18 PM
     
      Has Code

    Hi All - I am entirely new to SQL Server - can anyone please help me in converting the following

    from access to SQL Server 2008

    in ACCESS =sum([mytable]![end]-[mytable]![start]) * 24 +

    sum([mytable]![end]-[mytable]![start]) *8

    start - data type in SQL Server 2008 is dateime values look

    like 2012-01-25 15:22:48.000

    end - data type in SQL Server 2008 is datetime values

    look like 2012-01-25 15:18:40.437 I basically need the total number of hours and mins only

    something like 22:10 (twenty two hours and 10 mins)

    thank you in advance for your help and time


    • Moved by Iric WenModerator Tuesday, September 25, 2012 3:18 AM (From:SQL Server Data Access)
    •  

All Replies