Hello,
I have a table with invoices:
ID| Start date | End date | fee
18 1999-01-02 | 2018-01-02 | 3000
18 2012-01-02 | 2018-01-02 | 5000
In my query i can see all years and what the fee has been.
The problem is if customer has an old contract, example 1999-01-02 to 2018-01-02...