Hmm...if you want to select all of the products, and then the subtotals...the only way I could get it to work is with two selects...
SELECT date_time,quantity,price,shippingcharge FROM sales GROUP BY date_time;
SELECT date_time,sum(quantity) AS sum_quantity, sum(price) AS sum_price, sum(shippingcharge) AS sum_shippingcharge FROM sales GROUP BY date_time;
Would something like that work?
---John Holmes...