KwickClips Databases and SQL · 38 sec · free
Which COUNT counts rows?
Short answer. COUNT(*).
Why is COUNT(marks) smaller?
It ignores NULL values.
Remember
| COUNT(*): all rows |
| COUNT(col): skips NULL |
Same table, two counts. Why five and four? Count star counts every row. Count marks skips NULL. Kabir has no marks, so four. Count star counts all rows. Count of a column skips NULL.
This clip is from the full lesson: Aggregate Functions: COUNT, SUM, AVG, MAX and MIN — 6 minutes, with the tables, the quick answers and the whole lesson in text.
Useful for: CBSE Class 9 Computer Applications (165), CBSE Class 12 Computer Science (083), CBSE Class 12 Informatics Practices (065)
More KwickClips from this lesson
What does an aggregate function return?39 sec
Can one SELECT use four aggregates?42 sec
Does AVG treat NULL as zero?42 secVoice-over is AI-generated; the script is written and checked by Kajal Ma'am. Confirm anything you plan around against your official board document. We never ask for a password or an OTP.

