title: Getting group by sum and total sum in a single query
body: <p>Is there any way to get total price of all products by category and total price of all products in a single query.</p>
  
  <p>Below is query i am using giving price by category.</p>
  
  <pre><code>SELECT SUM(price) as totalprice
  FROM products 
  Group BY category_id
  </code></pre>