Explain GROUP BY in SQL.

The GROUP BY clause organizes rows from a table into groups based on the values in one or more columns. It is commonly employed alongside aggregate functions like SUM, COUNT, AVG, MIN, and MAX to perform computations on data that has been grouped together.


Comments

Leave a Reply

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