collinjones
Technical User
Sorry for the laymen's terms here as I am entirely self taught and not well.
I have been tasked with taking labor information from Micros daily and reporting total hours worked by job code at each location(ultimetly making these codes total into a category; Kitchen, Front of House, Bar, Management which is another question but not the main one right now).
The hours pulled from the system gives all employees hours' within one time frame (yesterday, week-to date, or month to date)but no location. So I created a simple table listing the location for each employee and dump three daily hours tables in making four tables.
My problem is that sometimes a person works two or more job codes in a given day, week, or month. The daily hours table has lets say two codes for one person, server and bar. My query is giving me both codes twice with the correct respective hours(for example my hours table has two rows, one for server hours 18.15 and one for bar hours 19.11 and the query does add the locaiton but has 4 rows two for each job code).
Where am I going wrong.
I have been tasked with taking labor information from Micros daily and reporting total hours worked by job code at each location(ultimetly making these codes total into a category; Kitchen, Front of House, Bar, Management which is another question but not the main one right now).
The hours pulled from the system gives all employees hours' within one time frame (yesterday, week-to date, or month to date)but no location. So I created a simple table listing the location for each employee and dump three daily hours tables in making four tables.
My problem is that sometimes a person works two or more job codes in a given day, week, or month. The daily hours table has lets say two codes for one person, server and bar. My query is giving me both codes twice with the correct respective hours(for example my hours table has two rows, one for server hours 18.15 and one for bar hours 19.11 and the query does add the locaiton but has 4 rows two for each job code).
Where am I going wrong.