in reply to Data Set Combination

If you do not use a hash but an array you can sort your records according to the date. Then you set a "cursor" at each market. You check that the date is the same at both cursors, then you calculate and slide both of the cursors forward. If the dates are not the same, the lower one is the missing. You do whatever you need to do and slide only the lower one forward.