I have 2 tables:
Budget, that include budget per month in € for each product (in each row the date is the last day of the month):
- 31/01/2023 product1 10000€
- 31/01/2023 product2 5000€
- 28/02/2023 product1 14000€
- 28/02/2023 product2 8000€
- ...
Sales, that include sales for each day for each product:
- 06/01/2023 product1 1000€
- 07/01/2023 product1 500€
- 07/01/2023 product2 40€
- ...
- 12/02/2023 product1 700€
- 15/02/2023 product2 80€
- ...
How do I correlate the two tables so that I can compare sales and budget for each month? I've tried to create a relationship between the 2 date columns but I get an error regarding cardinality