The 2 tables have multiple date ranges for each ID, the total number of ID around 40k.
Its expected that each ID date range in each table don't overlap, but the overlap happens between the two tables: In this example of 2 different ID's, there is n overlap between the date ranges between table 1 and table 2, so I need to find across the whole dataframe, which records in table 1 overlaps with dates in table 2 for each ID.
Table 1
Table 2