Opportunities and Problems of Social Electronic Commerce
February 15, 2022Reflective Essay
February 15, 2022Database Case Study (City Jail )
Task -1
We have discussed the initial data-based design for the jail and we have written different entries in the column first of the database design.
The added column of Criminals can be seen in the figure.
We have also added and removed the details of the criminal from the database.
Initial Database Design
List of additional entities needed
To map the database problem into the 3rd normal form, the following additional entities are required.
- Aliases
- Prob_officers
- Crime_charges
- Crime_officers
- Officers
- Crime_codes
Task – 2 and 3
Here in the final database, we have added the information of all the crimes that have tenure of more than 14 days. The list of police officers has been added to the final design.
The design contains the list of all the criminals’ details such as – criminal ID, name, crime classification, date change, appeal filling date, and appeal status.
The SQL drop can be seen in the figure:
Final Database Design (ERD), 3rd NF
Assumptions, considerations and design amendments
To map the case study into a 3rd normal form database ERD, the following actions were undertaken.
- Name decomposed into first and last.
- Address decomposed into street, city, state and zip.
- Added [crime officers] junction table to resolve the many to many relations between crimes and officers.
- Split the types of officers into distinct entities.
- Create a separate aliases table, to facilitate multiple aliases per criminal.
- Separate entity for crime code description.
- Separate entity for [prob officers] to link to sentences.
- Separate entity for criminal charges, linked to crimes.