0

Guys how do i select a duplicated field in sql. I have a table with possible duplicates by title, how to select them?

rcorbellini
  • 1,307
  • 1
  • 21
  • 42

1 Answers1

2

You can use this:

SELECT title, COUNT(*) as titleCount
FROM yourTableName
GROUP BY title
HAVING COUNT(*) > 1
Lawson
  • 624
  • 1
  • 5
  • 19