I have a query like this:
select a,b,c
from
table
Now I have another table which has hoursWorked in it. Basically I want the sum of anotherTable.hoursWorked where anotherTable.a = a and anotherTable.b = b and anotherTable.c = c.
What kind of query do I need to do this?
Thanks
Something like this:
SELECT DATE, CUSTOMER, SUM(FKEY.HOURSWORKED)
FROM TABLE1
INNER JOIN TABLE2 FKEY ON FKEY.CUSTOMER = CUSTOMER, FKEY.DATE = DATE
You would write something like this: