I have table as
Project_ID
Start_Date
End_Date
BUDGET_Amount
For example:
I Need to Return with SQL 12 Row Each Row Represent the Month-Year between the Two Date and the Value of Budget = 1200 / No of months between two dates "12" = 100$
So The Result to be like this Proj_ID , START_DATE , END_DATE , AMOUNT
- "1","1-JAN-2017","31-JAN-2017",100$
- "1","1-FEB-2017","27-FEB-2017",100$m
- "1","1-MAR-2017","31-MAR-2017",100$
- "1","1-APR-2017","31-APR-2017",100$
- "1","1-MAY-2017","31-MAY-2017",100$
- "1","1-JUN-2017","31-JUN-2017",100$
- "1","1-JUL-2017","31-JUL-2017",100$
- "1","1-AUG-2017","31-AUG-2017",100$
- "1","1-SEP-2017","31-SEP-2017",100$
- "1","1-OCT-2017","31-OCT-2017",100$
- "1","1-NOV-2017","31-NOV-2017",100$
- "1","1-DEC-2017","31-DEC-2017",100$