Lesson 19 of 3259%

(Progress persistence is disabled until Phase 9)

SQL
Beginner

HAVING Clause

Filter grouped records.

HAVING Clause

Filter grouped records.

Example

-- Find countries with more than 1 user
SELECT country, COUNT(*) as count FROM users GROUP BY country HAVING count > 1;

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