Hey everyone, thanks for the replies. I agree with the usage table one too.
Hmm yes there can be instruments with no user, but every user has one instrument. There are like extra ones lying around.
I'm not quite sure on how to do the Instrument Orders one... now that I think about it I think I should put a PK for the table (invoice number?), then sort of have records for every order etc, and then have price/date/all those stuff as keys in the table itself. So... the date of purchase should be a foreign key to the instrument table right?
Also, the serial number cannot be the primary key for some reason that the format of serial numbers differ for each instrument, and there
might be clashes if all are tallied together, even though I said it was unique. I'm not sure, but I have a feeling that each instrument should be given its own unique ID instead..
Oh and actually I'm not sure whether to include data about users as this database isn't about the whole band, but rather just the stocks. Eh.. I forgot to include the user's name. Whoops.. :P
Here's what I have so far:
Instrument Types
- (PK)Instrument type ID
- Instrument name
- Section (woodwinds/brass/percussion)
Instruments
- (PK)Instrument ID
- (FK)Instrument type ID
- Serial Number (unique but cannot be primary key)
- Brand
- Model Number
- Date of purchase
- Condition
o Last stock check date
o Stock check remarks
o Last maintenance date
o Maintenance remarks
o Overall condition (radio button - Everything OK, Still usable, Needs repair)
Users
- (PK)User ID
- Name
- Class
- Phone number (perhaps?)
Suppliers
- (PK)Supplier ID
- Supplier name
- Address
- Phone number
- Operating hours
Instrument Orders
- (PK)Order (invoice) number
- Date of purchase
- (FK)Instrument ID
- (FK)Supplier ID
Usage table
- (FK)User ID
- (FK)Instrument ID
Ahh I'm quite confused...

I think I mixed up views with tables, that's why I'm referencing things like that.. Am I doing things correctly?
Thanks so much (to both of you) for your help so far though!
