KnowledgeBoat Logo

Computer Science

What is the significance of GROUP BY clause in an SQL query?

SQL Queries

1 Like

Answer

The GROUP BY clause in SQL can be used in a SELECT statement to collect data across multiple records and group the results by one or more columns. It groups the rows on the basis of the values present in one of the columns and then the aggregate functions are applied on any column of these groups to obtain the result of the query.

Answered By

3 Likes


Related Questions