結果 : sql group by overlapping date range