Question DB-SQL-0002
EasyWhich SQL clause filters rows before grouping?
- A.
GROUP BY
- B.
WHERE
- C.
HAVING
- D.
ORDER BY
Show answer and explanation
Answer: B
WHERE filters individual rows; HAVING filters groups after GROUP BY.
Popular companies
Prepare company by company
Hiring pattern, syllabus, past questions and mocks for each company.
All companiesPractice by subject
SQL question
Which SQL clause filters rows before grouping?
GROUP BY
WHERE
HAVING
ORDER BY
Answer: B
WHERE filters individual rows; HAVING filters groups after GROUP BY.