One more improvement
- Need to include customer_id in group by to avoid merging
together different customers matching on name and address.
- But customer_ids are probably not of interest to the user.
- Can be omitted from the select.
Comments
- It's OK to group by columns that are not selected.
- The opposite is not permitted (because it doesn't make sense).