I feel like this should be easy but I'm really struggling. I have two tables, each has two columns: Table 1: Start date, Stop date Table 2: Count of surgeries, Day I want to create a third (final) table that has Three columns; start date, stop date, sum of surgeries between those dates. (Below tables have small date ranges for the sack of example but these would be much larger in practice) Table 1 (I have): Start Stop 7/3/2018 7/5/2018 7/5/2018 7/10/2018 Table 2 (I have): Day Count_of_Surgeries 7/3/2018 21 7/4/2018 3 7/5/2018 12 7/6/2018 25 7/7/2018 31 7/8/2018 5 7/9/2018 1 7/10/2018 10 Table 3 (I want): Start Stop Sum_surgeries 7/3/2018 7/5/2018 36 7/5/2018 7/10/2018 72 Dates setup to include mid-night to mid-night so in actuality the "stop" date count is not actually included in the sum.
... View more