Tsallaka zuwa abun ciki
Justice Tech School

Finding Duplicates

GROUP BY with HAVING COUNT(*) > 1 shows repeated values.

Example
SELECT country, COUNT(*) AS n FROM students GROUP BY country HAVING n > 1;

Result

country | n
Ghana   | 2
Nigeria | 4

Exercise

Repeated values.

HAVING COUNT(*)  1

Quiz Test

How do you find duplicates?

These free lessons are for learning. Join a full course for projects, mentor feedback and a verified certificate.