J
jeffrey.bergstedt
I have an Access database (2003) that contains three tables, HRD WEEKLY
DAY, NVA WEEKLY DATA, ROA WEEKLY DATA. There are a large number of
fields in each table(all tables have same fields), but her is an
example based on a couple fields that I need a query for. Fields:
SLA PERIOD, WEEK BEGIN, WEEK END, RES LNP INCOMING ORDER VOLUME
Now, depending on how many weeks there are in any give SLA Period,
there could be 4 or 5 rows with the same SLA Period entry in each
table, but with different WEEK BEGIN and WEEK END. I need an SQL query
that will Sum all the rows in each table where SLA PERIOD = JUL06, then
Sum the Sums.
In other words:
Sum(Sum[RES LNP INCOMING ORDER VOLUME].[HRD WEEKLY DATA] + SUM[RES LNP
INCOMING ORDER VOLUME],[NVA WEEKLY DATA] + SUM[RES LNP INCOMING ORDER
VOLUME].[ROA WEEKY DATA]) where [SLA PERIOD] = "JUL06"
Can anyone help?
Jeff
DAY, NVA WEEKLY DATA, ROA WEEKLY DATA. There are a large number of
fields in each table(all tables have same fields), but her is an
example based on a couple fields that I need a query for. Fields:
SLA PERIOD, WEEK BEGIN, WEEK END, RES LNP INCOMING ORDER VOLUME
Now, depending on how many weeks there are in any give SLA Period,
there could be 4 or 5 rows with the same SLA Period entry in each
table, but with different WEEK BEGIN and WEEK END. I need an SQL query
that will Sum all the rows in each table where SLA PERIOD = JUL06, then
Sum the Sums.
In other words:
Sum(Sum[RES LNP INCOMING ORDER VOLUME].[HRD WEEKLY DATA] + SUM[RES LNP
INCOMING ORDER VOLUME],[NVA WEEKLY DATA] + SUM[RES LNP INCOMING ORDER
VOLUME].[ROA WEEKY DATA]) where [SLA PERIOD] = "JUL06"
Can anyone help?
Jeff