I have a table. I'd like to search within this table for duplicate titles.
Lets say my data is as follows:
title1, title2, title3, title1, title4, title2, title9
I'd like for my query to search this table and output only the duplicates. So the output would look like:
title1
title1
title2
title2
I know how I can find the duplicates, but it only shows me one of the duplicates and not both.
SELECT id, title, artist_id FROM sm019_songs GROUP BY title HAVING count(title) > 1
Any ideas?