COUNT Function
COUNT returns the number of rows.
Count All Rows
sql
1SELECT COUNT(*) FROM students;Result
| COUNT(*) |
|---|
| 25 |
With WHERE
sql
1SELECT COUNT(*) FROM students
2WHERE course = 'Python';Returns: Number of Python students.

COUNT returns the number of rows.
1SELECT COUNT(*) FROM students;| COUNT(*) |
|---|
| 25 |
1SELECT COUNT(*) FROM students
2WHERE course = 'Python';Returns: Number of Python students.