OK, I'm TRYING to figure out this relational database crap but it's wrackin' mah bwain. I want to store multiple genres for a game and am having trouble coming up with the most efficient solution.
Do I, like I've been attempting, have to use a genreID "set" type in the "compare" table in order to assign multiple genres to a game--or I must list gameID twice, which would end up duplicating other data?:
table: compare
fields (data): id, gameID, genreID ("set" type)
sample data: 1, 1, (1,2)
table: genres
fields: genreID, genre
sample data: 1, action
2, adventure
Or do I list games with multiple genres in the genres table (which still duplicates gameIDs but takes up less space than in the compare table)?:
fields: genreID, gameID, action, adventure, role-playing, simulation, strategy
sample data: 1, 1, action
2, 1, adventure
Help!