Happy Friday:
I need some assistance with streamlining/reducing # of queries to output a "percentage query".
Objects I Have/Need to Keep:
- Tables [T1] and [T2]
- Queries [Q01_Complete] and [Q02_Remaining]
Objects I'd Like to Streamline/Simplify/Reduce:
- Q11_CountComplete
- Q12_CountRemaining
- Q13_CountTotal
- Q20_Percentage
Existing Process:
A. Query "Q11" pulls record count from [Q01_Complete] ... 61 records
B. Query "Q12" pulls record count from [Q02_Remaining] ... 13 records
C. Query "Q13" sums up record counts from "Q11" and "Q12" ... 74 records
D. Query "Q14" brings in all record counts from "Q11", "Q12", "Q13" and then generates the percentage calculation as shown below:
PercentComplete: 61/74 = 82.4%
PercentRemaining: 13/74 = 17.6%
PercentTotal: 61/74 + 13/74 = 100.0%
Although the calculation(s) itself are correct, it currently requires 4 queries (Q11, Q12, Q13, Q20) to produce the results.
My question(s):
Does anyone know of a better/streamlined process that allows me to reduce the 4 queries to some smaller number? Can some of the "helper" queries be combined? If so, how?