I need to display only genres which have at least two titles.
My Titles table:
Titles
------
TitleID, ArtistID, Title, StudioID, Genre
My Tracks table:
Tracks
------
TitleID, TrackNum, TrackTitle
This is my code so far:
select t.genre from titles t
join tracks tr
on (tr.titleid = t.titleid)
having count(tr.tracktitle) > 1;
I don't this the current code is answering the described question correctly.