MCQ Single Best Answer Easy

QWhat is the purpose of the GROUP BY clause in a MySQL query?

ID: #15417 Introduction to MySQL Databases 113 views
Question Info
#15417Q ID
EasyDifficulty
Introduction to MySQL DatabasesTopic

Choose the Best Option

Click any option to instantly check if you're correct.

  • A To specify the columns to retrieve
  • B To sort the result set
  • C To filter the rows based on conditions
  • D To group the rows into subsets
Correct Answer: Option D

Explanation

The GROUP BY clause in a MySQL query is used to group the rows based on one or more columns. It allows you to perform aggregate functions, such as SUM or COUNT, on each group of rows.

Share This Question

Challenge a friend or share with your study group.