easy5 pts · first answer countssqlaggregation
COUNT and AVG with NULLs
What does this query return?
-- scores rows: (id 1, score 90), (id 2, score NULL), (id 3, score 75) SELECT COUNT(*), COUNT(score), AVG(score) FROM scores;
Discussion 0
Join free to post in the discussion.
Related questions
- Stopping SQL injectionBackend Developer
- Purpose of a database indexBackend Developer
- Rows returned by a LEFT JOINBackend Developer
- What a foreign key enforcesBackend Developer
- Atomicity in a money transferBackend Developer
- Filtering grouped resultsBackend Developer
- Duplicate emails despite a checkBackend Developer
- What EXPLAIN tells youBackend Developer