Date Difference Using Sql Aggregate Operators