genreTable:
id | genre |
---|---|
1 | Pop |
2 | Rock |
3 | Electro |
songTable:
id | name | genre |
---|---|---|
1 | Song1 | 1 |
2 | Song2 | 1,2 |
3 | Song3 | 2,3 |
Problem: Lets say I want to build query like:
SELECT * FROM songTable WHERE genre = '1'
It'll only return Song1
But how Do I make sure it also returns Song1, Song2
Any other suggestions regarding re-structuring the table is also accepted...