My table is as below:
Emp.name strt date end date netwrk days
A 1-Mar-16 10-Mar-16 8
B 6-Mar-16 10-Mar-16 4
C 8-Mar-16 12-Mar-16 4
D 16-Mar-16 26-Mar-16 8
Total Days 18
eg: Start date and end date of B is overlapping with A, so the total days worked by A & B is 8, means the days worked by A.
Similarly, i need the the total days worked by A, B, C, D. expected answer should be 18
Bookmarks