S
sarahphonics
I have two tables in my database, CH2_1 and CH2_2. They both have identical
variables - Quarter, Purchaser, Provider, O_D, WAIT02, WAIT35.
However, they have different values in the WAIT02,WAIT35 variables. Both
tables have some cases with the same quarter,purchaser etc, bt table CH2_1
has some values which CH2_2 does not have.
What I need to do, is produce a query which sums the WAIT02 in CH2_1 and
CH2_2, into a variable called Wait 0-2, and sums WAIT35 in CH2_1 and CH2_2
into a variable Wait 3-5, but at the same time, aggregates by quarter,O_D and
purchaser.
I need all the values in both tables, even if the other table does not have
a case for the combination of quarter, O_D and purchaser.
IF you need any further clarification, ill do my best to explain.
A quick response would be gratefully appreciated
variables - Quarter, Purchaser, Provider, O_D, WAIT02, WAIT35.
However, they have different values in the WAIT02,WAIT35 variables. Both
tables have some cases with the same quarter,purchaser etc, bt table CH2_1
has some values which CH2_2 does not have.
What I need to do, is produce a query which sums the WAIT02 in CH2_1 and
CH2_2, into a variable called Wait 0-2, and sums WAIT35 in CH2_1 and CH2_2
into a variable Wait 3-5, but at the same time, aggregates by quarter,O_D and
purchaser.
I need all the values in both tables, even if the other table does not have
a case for the combination of quarter, O_D and purchaser.
IF you need any further clarification, ill do my best to explain.
A quick response would be gratefully appreciated