Find the overlapping date or time range in SQL Server