-- With Specified time SELECT DATEDIFF(mi, '12:34:34', '12:34')/60; -- with Specified Column Names SELECT DATEDIFF(mi, OTIM, ReportedTime)/60;
SELECT DATEDIFF(HOUR, CAST(OTIM AS DATETIME),CAST(ReportedTime AS DATETIME)) FROM YourTableName
DATE
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)