I\'m having difficulty writing an SQL query that will correctly group sales items sold_qyt and sub-total-price together as per product\'s category so I can show this on the prin