Merge where date ranges match

@sl-solution, I think this should be suitable for range join that you mentioned in ANN, am I right?

asdasdasdasdasdasdasdasdasdasdasdasdasdasdasdasd