TaiChi56 Posted March 11, 2010 Posted March 11, 2010 Alright a little confused. Here is what I have. I am setting a key database. It is for a school. Right now I have one table that has everything so that is not a true database. 1. Teachers 2. Keys 3. Rooms Should I break it up to these three tables. I have over 260 rooms, so obviously a key for each room, but then I have cabinet keys and desk keys. I was thinking about making a table listing all the keys but that would be over several hundred. Would it be better with a value list? I want to be able to click a room and it displays what key belongs to it, i.e. room 206 KC1. Also want to be able to link the key to the teacher and the teacher to the room. Where do I start? Right now I have a database but it is basically a flat file.
comment Posted March 11, 2010 Posted March 11, 2010 Do you want to track all keys, or just the ones assigned to a teacher?
TaiChi56 Posted March 11, 2010 Author Posted March 11, 2010 Good question. I need to track the ones assigned to the teachers. But this changes throughout the year. That is why I must have the whole inventory in the database.
comment Posted March 11, 2010 Posted March 11, 2010 But this changes throughout the year. That is why I must have the whole inventory in the database. I don't see the connection. Let me ask this another way: suppose there are 5 keys to a room; 3 are assigned to teachers, and 2 are locked in your cabinet. Is it enough if the solution shows something like: Room 206: Total keys: 5 Assigned keys: • Adam • Betty • Cecil Available keys: 2 IOW, are the keys numbered?
TaiChi56 Posted March 11, 2010 Author Posted March 11, 2010 Yes, that will suffice. Yes, the keys are numbered. They are numbered by the locksmith so room 223 is key KD1. That is also the problem. I need to be able to link that key KD1 is room 223 key. The only way I would know is go to a master list that was given to me by the locksmith. I would like to be able to look for room 223 and the database shows me that key KD1 is the room key that three were made and one is issued to so and so. THank you for the quick repsonse.
comment Posted March 11, 2010 Posted March 11, 2010 the database shows me that key KD1 is the room key that three were made and one is issued Just to make sure I get this correctly: all three keys are numbered KD1? What if you need two keys more: will the locksmith number them KD1 too?
comment Posted March 11, 2010 Posted March 11, 2010 (edited) Well, then I believe the three tables should be sufficient - although I would rename Rooms to Assets (rooms, cabinets, etc.), and Keys to KeysIssued. The relationships are simple: Assets -< KeysIssued >- Teachers In the KeysIssued table have fields for: • AssetID • TeacherID • DateIssued • DateReturned (the active assignments are those where DateReturned is empty) Edited March 11, 2010 by Guest
TaiChi56 Posted March 11, 2010 Author Posted March 11, 2010 Thank you very much for your reply. I will do that.
Recommended Posts
This topic is 5438 days old. Please don't post here. Open a new topic instead.
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now