SELECT reportdate,sfdate,sfdate-reportdate,round(to_number(substring(sfdate - reportdate,1,9))*24+to_number(substring(sfdate - reportdate,11,2))+to_number(substring(sfdate - reportdate,14,2))/60+to_number(substring(sfdate - reportdate,17,2))/(60*60),2) as av FROM [dbo].[xpzhouqi]