I am stuck in a case that on my financial sys, I need to add a option for value to be monthly, weekly or every 2 weeks
example:
DESC | VALUE | DATEADD | FREQUENCY
--------+---------+------------+-----------
SALARY | 1000,00 | 26/03/2017 | 30 (MONTHLY)
DINNER | 50,00 | 26/03/2017 | 7 (WEEKLY)
BUSTICK | 75,00 | 26/03/2017 | 15
select
*
from
tableexpensives
where
datesys between '01/01/2017' and '31/12/2017'
so it should show on sql
APR | SALARY | 1000,00 | (1x month)
APR | DINNER | 200,00 | (4x month)
APR | BUSTICK | 150,00 | (2X month)
MAI | SALARY | 1000,00 | (1x month)
MAI | DINNER | 200,00 | (4x month)
MAI | BUSTICK | 150,00 | (2X month)
....
Any idea how to do that?