Hi,
I need to split a date range into months to calculate no of working days for each month using either SQL or PL/SQL code.
I have done it through hierarchy query but I am getting performance issue. Query is getting stuck.
Kindly help.
Sample data is as below:
Input records | | |
Emp Name | Start Dt | End Dt |
swaraj | 15-Jan-2016 | 27-APR-2016 |
| | |
Output | | |
Emp Name | Start Dt | End Dt |
swaraj | 15-Jan-2016 | 31-Jan-2016 |
swaraj | 01-Feb-2016 | 29-Feb-2016 |
swaraj | 01-MAR-2016 | 31-MAR-2016 |
swaraj | 01-APR-2016 | 27-APR-2016 |
Thanks,
Swaraj