Single Choice Easy

QWhat is the purpose of the HAVING clause in a MySQL query?

ID: #15424 Introduction to MySQL Databases 120 views
Question Info
#15424Q 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 filter the result set based on conditions
Correct Answer

Explanation

The HAVING clause in a MySQL query is used to filter the result set based on conditions that involve aggregate functions. It is similar to the WHERE clause but operates on the grouped rows rather than individual rows.

Share This Question

Challenge a friend or share with your study group.