CBSE Class 12 Informatics Practices Question 44 of 79

Database Query using SQL — Question 2

Back to all questions
2
Question

Question 2

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

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.