Is there any way to get total price of all products by category and total price of all products in a single query.
Below is query i am using giving price by category.
SELECT SUM(price) as totalprice
FROM products
Group BY category_id
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…