SyntaxFix
Write A Post
Hire A Developer
Questions
Why not just
Select Sum(Date1 - Date2) from table
date1 and date2 are datetime