Hi Friends,
In my table Employee Details is stored as:
| EmployeeName | Department | Position | Manager | Effective_From | Effective_To |
| Leo | Sales | Salesman | Hing | 1-Jan-14 | 31-Mar-14 |
| Leo | Sales | Salesman | Keon | 1-Apr-14 | 30-Sep-14 |
| Tin | Sales | Salesman | John | 1-Jun-14 | 31-Dec-14 |
| Leo | Sales | Salesman | John | 1-Oct-14 | 31-Dec-14 |
Effective_From and Effective_to are date column which specify the time during which an employee reports to a particular manager. e.g. Leo report to Hing from Jan to Mar, Leo report to Keon from Apr to Sep and reported to John from Oct to Dec.
Also Tin data start from Jun month and he reported to John from Jun to Dec.
I need to prepare a view on above table which can give me monthly data as:
| EmployeeName | Department | Position | Manager | Data_Month |
| Leo | Sales | Salesman | Hing | January |
| Leo | Sales | Salesman | Hing | Febrary |
| Leo | Sales | Salesman | Hing | March |
| Leo | Sales | Salesman | Keon | April |
| Leo | Sales | Salesman | Keon | May |
| Leo | Sales | Salesman | Keon | June |
| Leo | Sales | Salesman | Keon | July |
| Leo | Sales | Salesman | Keon | August |
| Leo | Sales | Salesman | Keon | September |
| Leo | Sales | Salesman | John | October |
| Leo | Sales | Salesman | John | November |
| Leo | Sales | Salesman | John | December |
| Tin | Sales | Salesman | John | June |
| Tin | Sales | Salesman | John | July |
| Tin | Sales | Salesman | John | August |
| Tin | Sales | Salesman | John | September |
| Tin | Sales | Salesman | John | October |
| Tin | Sales | Salesman | John | November |
| Tin | Sales | Salesman | John | December |
Kindly help.