I have to calculate the difference in hours (decimal type) between two dates in SQL Server 2008.
I couldn\'t find any useful technique to convert datetime to decimal
DATEDIFF(minute,startdate,enddate)/60.0)
Or use this for 2 decimal places:
CAST(DATEDIFF(minute,startdate,enddate)/60.0 as decimal(18,2))