indrajeetpramalik
New member
- Local time
- Today, 12:56
- Joined
- Aug 14, 2019
- Messages
- 15
I have a Table "Leave" containing data as below:
LeaveAppliedOn........LeaveAppliedTill........EmployeeName
03-Jul-19.................06-Jul-19.................A
04-Jul-19.................05-Jul-19.................B
05-Jul-19.................08-Jul-19.................C
10-Jul-19.................14-Jul-19.................A
10-Jul-19.................14-Jul-19.................D
14-Jul-19.................18-Jul-19.................E
15-Jul-19.................15-Jul-19.................B
20-Jul-19.................20-Jul-19.................F
LeaveAppliedOn and LeaveAppliedTill is DateRange of Leave given to EmployeeName
Now i want to have result in query from these data as below:
LeaveDate........EmployeeName
3-Jul-19...........A
4-Jul-19...........A
5-Jul-19...........A
6-Jul-19...........A
4-Jul-19...........B
5-Jul-19...........B
5-Jul-19...........C
6-Jul-19...........C
7-Jul-19...........C
8-Jul-19...........C
10-Jul-19.........A
11-Jul-19.........A
12-Jul-19.........A
13-Jul-19.........A
14-Jul-19.........A
10-Jul-19.........D
11-Jul-19.........D
12-Jul-19.........D
13-Jul-19.........D
14-Jul-19.........D
14-Jul-19.........E
15-Jul-19.........E
16-Jul-19.........E
17-Jul-19.........E
18-Jul-19.........E
15-Jul-19.........B
20-Jul-19.........F
Sample Database with records is attached. Help Appreciated. Thanks.
LeaveAppliedOn........LeaveAppliedTill........EmployeeName
03-Jul-19.................06-Jul-19.................A
04-Jul-19.................05-Jul-19.................B
05-Jul-19.................08-Jul-19.................C
10-Jul-19.................14-Jul-19.................A
10-Jul-19.................14-Jul-19.................D
14-Jul-19.................18-Jul-19.................E
15-Jul-19.................15-Jul-19.................B
20-Jul-19.................20-Jul-19.................F
LeaveAppliedOn and LeaveAppliedTill is DateRange of Leave given to EmployeeName
Now i want to have result in query from these data as below:
LeaveDate........EmployeeName
3-Jul-19...........A
4-Jul-19...........A
5-Jul-19...........A
6-Jul-19...........A
4-Jul-19...........B
5-Jul-19...........B
5-Jul-19...........C
6-Jul-19...........C
7-Jul-19...........C
8-Jul-19...........C
10-Jul-19.........A
11-Jul-19.........A
12-Jul-19.........A
13-Jul-19.........A
14-Jul-19.........A
10-Jul-19.........D
11-Jul-19.........D
12-Jul-19.........D
13-Jul-19.........D
14-Jul-19.........D
14-Jul-19.........E
15-Jul-19.........E
16-Jul-19.........E
17-Jul-19.........E
18-Jul-19.........E
15-Jul-19.........B
20-Jul-19.........F
Sample Database with records is attached. Help Appreciated. Thanks.
Attachments
Last edited: