var sidebar_align = 'right';
var content_container_margin = parseInt('290px');
var sidebar_width = parseInt('270px');
Question about database table design
So, I am designing a website that will attempt catalog rosters of performing members of musical ensembles as well as what instruments they played and the years they played them.
So far, I know I will need tables as such:
Person Instrument Performing Ensemble Season
I guess my dilemma is what sort of joining tables need to exist between the various elements. A few example records would be as follows:
Billy Bob played Drums for Music Group A in 2008
John also played drums for Music Group A in 2008
John played guitar for Music Group B in 2009.
They website will need to be searchable based on those elements. Any suggestions would be much appreciated.
Thanks in advance!
you need at least 4 tables
3 of them for persons, instruments, ensembles
1 for the "who played what, where, and when" facts, exactly like your examples, except using FKs to link to the PKs of the 3 main tables, and possibly a FK to the seaon PK, unless all you have for the season is the year, in which case a season table is prolly not needed