I'm creating an application that will track user's interests.
Apart from the regular user-related info, we will track Music and Restaurant interests.
I was thinking of creating a separate table for each, ie:
Music will contain: hip-hop, jazz, country, rock, r&b, etc...
Restaurant will contain: French, Italian, Vietnamese, Chinese, Japanese, Fusion, etc...
Can I link these all into a dynamic view of some sort, that will be updated whenever I add new fields to each table? (the view will contain a link to all tables and link the userID with their preferences)
- OR -
Would it be best to create one large table with all categories, where the attribute (field) prefixes the category, and (A) store these all in the User table, (B) store these in a separate table with just a FK to the User.PK ?
Apart from the regular user-related info, we will track Music and Restaurant interests.
I was thinking of creating a separate table for each, ie:
Music will contain: hip-hop, jazz, country, rock, r&b, etc...
Restaurant will contain: French, Italian, Vietnamese, Chinese, Japanese, Fusion, etc...
Can I link these all into a dynamic view of some sort, that will be updated whenever I add new fields to each table? (the view will contain a link to all tables and link the userID with their preferences)
- OR -
Would it be best to create one large table with all categories, where the attribute (field) prefixes the category, and (A) store these all in the User table, (B) store these in a separate table with just a FK to the User.PK ?