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

Lesson Progress

Practice This TopicTake QuizBuild a SQL Project

Ready to practise?

Apply what you learned with a hands-on challenge.

Practise This Topic