I have a table called Projects and another table called Project Details. The Projects table contains the overall hours quoted for each project. The Project Details table allows the user to have multiple entries per project and specify hours worked for each entry.
Here's a simplified sample of each:
Projects Table
Project Hours Quoted Service Analyst
12 20 Reporting Sandy
Here's a sample of Project Details Table
Entry Project Hours Worked
1 12 10
2 12 10
When I create a query to group by service type, group by analyst, sum quoted hours and sum hours worked, I get:
40 hours quoted and 20 hours worked. It is duplicating the quoted hours for every entry in Project Details. What I want is 20 hours quoted and 20 hours worked.
Any help is appreciated.
Thanks
Here's a simplified sample of each:
Projects Table
Project Hours Quoted Service Analyst
12 20 Reporting Sandy
Here's a sample of Project Details Table
Entry Project Hours Worked
1 12 10
2 12 10
When I create a query to group by service type, group by analyst, sum quoted hours and sum hours worked, I get:
40 hours quoted and 20 hours worked. It is duplicating the quoted hours for every entry in Project Details. What I want is 20 hours quoted and 20 hours worked.
Any help is appreciated.
Thanks