Question
Q of Q Question
Hi,
I am trying to consolidate my code so that I can output the results using one query instead of two, but I can't seem to make it work.
If you look at my code you will see the following.
1. The first query gets all the order info from the "Orders" and "OrdersItems" tables.
2. The second query (Q of Q) totals the order info by month and year.
3. The third query (Q of Q) gets a grand total for each year.
This currently works fine if I output the second and third queries separately.
However, I would like to combine them into one query so that I can have better control over how I group the data.
Can this be done?
Thanks in advance for any help offered.
Steve
I am trying to consolidate my code so that I can output the results using one query instead of two, but I can't seem to make it work.
If you look at my code you will see the following.
1. The first query gets all the order info from the "Orders" and "OrdersItems" tables.
2. The second query (Q of Q) totals the order info by month and year.
3. The third query (Q of Q) gets a grand total for each year.
This currently works fine if I output the second and third queries separately.
However, I would like to combine them into one query so that I can have better control over how I group the data.
Can this be done?
Thanks in advance for any help offered.
Steve