I'm using MySQL Workbench to extract a list.
This is what my database looks like: database
I'm trying to identify the composer with the most duplicated tracks in this database.
This is the code I entered:
SELECT Name, Composer, Count(*) FROM Track
GROUP BY Name, Composer
HAVING Count(*)>1
ORDER BY Count(*) DESC;
As a result of this query, I have the number of duplicates per tracks, alongside the composer. The thing is I have duplicates in composers. Therefore, my code gives me the track that is the most duplicated and its associated composer. This is not what I'm looking for. How can I have identify the composer with the most duplicated tracks in this database?
Here is a result of my query if it can help: query-result