If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > General > Database Concepts & Design > Question about database table design

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 01-27-09, 22:05
visaudio visaudio is offline
Registered User
 
Join Date: Jan 2009
Posts: 1
Question about database table design

Hello all,

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!
Reply With Quote
  #2 (permalink)  
Old 01-27-09, 22:34
r937 r937 is offline
SQL Consultant
 
Join Date: Apr 2002
Location: Toronto, Canada
Posts: 19,524
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
__________________
r937.com | rudy.ca
please visit Simply SQL and buy my book
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On