raghuram.star
Board Regular
- Joined
- Sep 5, 2012
- Messages
- 102
Can you please help me query 3 tables and return the records.
Table 1 : Employee Data
Table 2 : Activity Data
Table 3 : Work Days
Relation between tables
Table 1 : Table 2
[Emp No]
Table 2 : Table 3
[Date]
I would love for a query to populate employe records who did not work in working days or having less work hours (less than 5 hours).
Final Table: Work Log
Thank you very much in advance. I'm excited to hear what is possible!
Ram
Table 1 : Employee Data
Code:
Emp No Name Dept
123 Raghu Fin
124 Ram Hr
125 Cris Ops
126 Giri IT
Table 2 : Activity Data
Code:
Emp No Name Date Hours
123 Raghu 1/2/2015 5
123 Raghu 1/3/2015 6
123 Raghu 1/4/2015 4
124 Ram 1/2/2015 5
124 Ram 1/3/2015 6
125 Cris 1/2/2015 5
125 Cris 1/3/2015 6
125 Cris 1/4/2015 2
Table 3 : Work Days
Code:
Date
1/2/2015
1/3/2015
1/4/2015
Relation between tables
Table 1 : Table 2
[Emp No]
Table 2 : Table 3
[Date]
I would love for a query to populate employe records who did not work in working days or having less work hours (less than 5 hours).
Final Table: Work Log
Code:
Emp No Name Dept Date Hours
123 Raghu Fin 1/4/2015 4
124 Ram Hr 1/4/2015 0
125 Cris Ops 1/4/2015 2
126 Giri IT 1/2/2015 0
126 Giri IT 1/3/2015 0
126 Giri IT 1/4/2015 0
Thank you very much in advance. I'm excited to hear what is possible!
Ram