user4180321
user4180321

Reputation:

How to select rows with duplicate content?

I have a table of email, and I want to select emails that Repeated more than one time:

enter image description here

How can I just select rows (Emails) that repeated more than one time?

Upvotes: 0

Views: 99

Answers (1)

juergen d
juergen d

Reputation: 204784

Group by email and select only those having more than one record per group

select email
from your_table
group by email
having count(*) > 1

Upvotes: 3

Related Questions