Date Difference Using Sql Join Syntax