George10988
Registered User.
- Local time
- Today, 07:00
- Joined
- Apr 23, 2011
- Messages
- 41
Hello everyone, I am creating a database for a local police department. The database is supposed to contain info related to juvenile's, their offenses, home situations, and cases.
I have a normalized setup which currently includes 3 tables.
One table is the "Home Bio" table which contains things such as the father and mother's name and address/ phone, number of siblings and things like that.
The next table is the Juvenile Bio table which contains things such as the juvenile's name, age, birth date, race, etc.
The last table is the "case" table which contains things like date arrested, date released, and things pertaining to their actual case.
My dillema is that the juvenile officer wants me to create a database with all their possible offense codes. For example Burglary could be offense code 0349 or something like that. She wants to be able to start typing in a number or offense in the data entry form I have setup and have it auto predict what she is typing in as she types it. I also am not sure how to relate this table to my other tables. I tried setting it up to my case table as a one to many relationship because obviously one case of arrest can have many offenses; however, I get an error saying that records in my main table might not exist in my secondary table. I'm not sure how to related that database because it will already have hundreds of pre-issued codes and offenses. One or multiple of these codes must be assigned to each juvenile on a case by case basis.
I have a normalized setup which currently includes 3 tables.
One table is the "Home Bio" table which contains things such as the father and mother's name and address/ phone, number of siblings and things like that.
The next table is the Juvenile Bio table which contains things such as the juvenile's name, age, birth date, race, etc.
The last table is the "case" table which contains things like date arrested, date released, and things pertaining to their actual case.
My dillema is that the juvenile officer wants me to create a database with all their possible offense codes. For example Burglary could be offense code 0349 or something like that. She wants to be able to start typing in a number or offense in the data entry form I have setup and have it auto predict what she is typing in as she types it. I also am not sure how to relate this table to my other tables. I tried setting it up to my case table as a one to many relationship because obviously one case of arrest can have many offenses; however, I get an error saying that records in my main table might not exist in my secondary table. I'm not sure how to related that database because it will already have hundreds of pre-issued codes and offenses. One or multiple of these codes must be assigned to each juvenile on a case by case basis.