Computer Science · Database Management System
Given below are two statements: one is labelled as Assertion A and the other is labelled as Reason R. Assertion A: In SQL, the WHERE clause is utilized to filter individual rows before grouping and cannot use aggregate functions, whereas the HAVING clause filters groups after grouping and permits the use of aggregate functions. Reason R: The logical execution order of SQL clauses dictates that the HAVING clause executes before the GROUP BY clause to compute data, while the WHERE clause executes after the SELECT clause to finalize row output. In the light of the above statements, choose the most appropriate answer from the options given below:
- 1A is not correct, but R is correct
- 2A is correct, but R is not correct✓
- 3Both A and R are correct, but R is NOT the correct explanation of A
- 4Both A and R are correct, and R is the correct explanation of A
Correct answer
A is correct, but R is not correct
Download Single Question PDF
Save this question and verified answer as a clean study sheet with live clickable link.
Share with Friends & Study Groups
Challenge your peer aspirants on WhatsApp or Telegram to solve this question!
Preparing for Computer Science?
Practice full-length mock tests with real exam timers, instant score analysis, and all-India ranking.
Want more practice questions on Database Management System?
Solve complete topic-wise tests with detailed solutions on GkGet.
Related Practice Questions
Recommended practice questions in Computer Science · Database Management System