engineering computer science MCQ #726

What is the purpose of the SQL HAVING clause?

engineering computer science MCQ #726

  1. Question 1

    Q1. What is the purpose of the SQL HAVING clause?

    • A) To filter data based on conditions
    • B) To sort data in ascending or descending order
    • C) To group data based on one or more columns
    • D) To filter grouped data based on conditions

    Answer: To filter grouped data based on conditions

    Explanation: The HAVING clause is used to filter grouped data based on conditions, typically used in conjunction with the GROUP BY clause.