Question DB-SQL-0058
MediumWhy does SELECT dept, name, COUNT(*) FROM emp GROUP BY dept; fail in standard SQL?
- A.
dept must be aggregated
- B.
name is neither grouped nor aggregated, so it has no single value per group
- C.
Sign up free to see the answer and a step-by-step explanation.