I have two tables, one with some data, anothe one with some time intervals (start milliseconds, end milliseconds). The data has a time stamp when it was received (mi