Skip to main contentSkip to solution

Match List-I with List-II

List-IList-II
(A). GROUP BY(I). Specific conditions on the rows with GROUP BY clause
(B). HAVING(II). It retrieves data that meet some specified conditions.
(C). ORDER BY(III). Group rows having common values
(D). WHERE(IV). Arrange rows in a particular order (ASC/DESC)

Solution

✅ Correct Option: 2
List IList II
(A) GROUP BY(III) Group rows having common values
(B) HAVING(I) Specific conditions on the rows with GROUP BY clause
(C) ORDER BY(IV) Arrange rows in a particular order (ASC/DESC)
(D) WHERE(II) It retrieves data that meet some specified conditions

WHERE and HAVING are easily confused. WHERE filters individual rows before grouping, while HAVING filters the groups formed by GROUP BY, so it is the one that works with aggregate functions like COUNT\text{COUNT} or SUM\text{SUM}.

Keyboard Shortcuts

  • Left arrow: Previous question
  • Right arrow: Next question
  • S key: Jump to solution
  • Q key: Jump to question