What is the purpose of GROUP BY clause in SQL?

  • To filter rows based on a condition
  • To group rows based on the values in one or more columns
  • To perform a join operation
  • To sort the result set in ascending or descending order
The GROUP BY clause in SQL is used to group rows based on the values in one or more columns. It is often used in conjunction with aggregate functions to perform operations on each group separately, providing a way to analyze and summarize data.
Add your answer
Loading...

Leave a comment

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