I have two tables as shown below. I want to get the resultant table as shown in the result table. The user will pass the date range. Between the date ranges, if the date range i