Lesson 20 of 3263%
(Progress persistence is disabled until Phase 9)
SQL
Beginner
COUNT()
Count the number of rows.
COUNT()
Count the number of rows.
Example
-- Get the total number of orders
SELECT COUNT(*) FROM orders;
Test it Yourself
(Progress persistence is disabled until Phase 9)
Count the number of rows.
Count the number of rows.
-- Get the total number of orders
SELECT COUNT(*) FROM orders;