A retail company wants to analyze sales data to determine the total revenue generated per product category. Which SQL operation would you use to achieve this?

  • GROUP BY
  • HAVING
  • JOIN
  • ORDER BY
To achieve the desired result, you would use the SQL operation GROUP BY. This allows you to group rows that have the same values in specified columns, enabling the calculation of aggregate functions like SUM to determine total revenue per product category.
Add your answer
Loading...

Leave a comment

Your email address will not be published. Required fields are marked *