670 Merge records within intervals