- Oct 12, 2004
- 497
- 0
- 76
First, I'm not sure if this should be in this forum or in programming; mods, please feel free to move it if it's in the wrong place.
I took a DB class about four years ago when I was a CS major. The basics have stuck with me, but I'm still having a problem.
I'm working on an inventory and personnel DB for a high/middle school band department. The tables I have pertaining to my problem are:
student personnel (info, instrument#)
instrument inventory (info, instrument#)
colleagues (info, instrument1#, instrument2#, instrument3#, ..., instrument20#)
The relationship between the student's instrument number and the instrument number in the inventory works well. My query of the student table will return all info about which instrument has been checked out to each student.
Because of the school district's shortage of instruments, teachers from other schools can check out instruments from my school. I'd like to have the same type of relationship between the colleague and instrument inventory tables as I do between the student and instrument inventory tables. Catch what I'm saying? I'm trying to future-proof this and make it so colleagues have the potential to check 20 instruments out from my inventory, however unlikely that may be
At this point, if I use the student query (modified, of course) to find out which instruments each colleague has checked out, nothing is returned. I'm not sure if this is a query problem or a problem with how I have the relationship set up within the database.
Any help is definitely appreciated.
I took a DB class about four years ago when I was a CS major. The basics have stuck with me, but I'm still having a problem.
I'm working on an inventory and personnel DB for a high/middle school band department. The tables I have pertaining to my problem are:
student personnel (info, instrument#)
instrument inventory (info, instrument#)
colleagues (info, instrument1#, instrument2#, instrument3#, ..., instrument20#)
The relationship between the student's instrument number and the instrument number in the inventory works well. My query of the student table will return all info about which instrument has been checked out to each student.
Because of the school district's shortage of instruments, teachers from other schools can check out instruments from my school. I'd like to have the same type of relationship between the colleague and instrument inventory tables as I do between the student and instrument inventory tables. Catch what I'm saying? I'm trying to future-proof this and make it so colleagues have the potential to check 20 instruments out from my inventory, however unlikely that may be
At this point, if I use the student query (modified, of course) to find out which instruments each colleague has checked out, nothing is returned. I'm not sure if this is a query problem or a problem with how I have the relationship set up within the database.
Any help is definitely appreciated.