I was wondering if the following was possible with a query? If so, can someone give me an example query? I want to print a list of products, group them by color, and then have the totals at the end of each group.
| Color | Product |
-------------------
| Blue | Case |
| Blue | Vase |
| Blue | Coat |
Total: 3
| Red | Care |
| Red | Cover |
Total: 2