</>
ShikshaCSLearn. Code. Grow.
🔍
☕ Support Us
ShikshaCSâ€ēPractice Problems
DBMSMediumSQL

Find Duplicate Rows in a Table (SQL)

📋 Problem

Given a table Students(Name, Email), write a query to find all duplicate email addresses along with how many times each appears.

🧭 Approach

Group the rows by the Email column, then use HAVING (not WHERE, since we're filtering on an aggregate) to keep only the groups where the count is greater than 1.

← Back to all Problems