Database Project
Database Project
SUBMITTED TO :
DR KASSAHUN
Police Criminal
Database
CONTENTS
INTRODUCTION...........................................................................................................................................1
CONCEPTUAL DESIGN..................................................................................................................................2
ENTITY RELATION DIAGRAM........................................................................................................................4
RELATIONAL MODEL....................................................................................................................................5
PHYSICAL DESIGN........................................................................................................................................8
PHYSICAL DATA MODEL.............................................................................................................................10
Appendix......................................................................................................................................................I
SQL CODE..................................................................................................................................................I
INTRODUCTION
One of the most important issues that exist on a global scale is crime. In our nation, crime rates
have been rapidly increasing. Understanding the causes of crime will help control it. This
requires that crimes be thoroughly documented, examined, and, as a result of the analysis's
findings, resolved with workable solutions.
The current data handling method in police stations in our country is manual file handling
system, computerized data handling systems are rare. Even though it provides good security, it
has a number of limitations. Some major limitations are:
-Data organization
-Data efficiency
-Updating, Retrieving, and Integrating file
-Cross referencing of data
-It is prone to error
-Requires more human labor
Since the current data management is manually, it is stored in one or more cabinets.
Organization of data is by using index system, it is a system in which a data is accessed easily by
identifying the location by file name, key data fields in a database, or through a text in a file.
Data are searched and retrieved by either searching the right cabinet then the right file then the
information.
Generally, database system’s advantage over the manual system can be easily distinguished
because it literally improves the drawbacks on manual file handling system. This can be
measured by; simple and effective organization of data; data can be easily updated, retrieved,
and integrated; it is more centralized hence will provide much better information control;
database system requires less labor in comparison with manual system. Even though manual file
handling system provides a good security, database system has much better security system. So
the simplicity and effectiveness of database system over manual system generally explains the
measurement of benefits.
The Police Database is an information management system that improves the ability of the
Police Service to manage and share intelligence and other operational information, to prevent
and detect crime and make communities safer. The Police Database offers a capability for the
Police Service to share, access and search local information electronically, overcoming artificial
geographical and jurisdictional boundaries.
When there is a First Information Report for a crime, police can add information to the
database. They can upload more data to the system when they discover and acquire more
details about the crime. Both recent crimes with little information and older crimes with lots of
information can be stored in it. Therefore, it also offers versatility. The police can also use this
system to quickly fill out crime reports, traffic(accident) reports and administrative reports.
The software utilizes a client-server architecture. Users (clients) with access rights to the server
can examine the data that has already been saved, add new data, and update the data in
accordance with their level of access rights. All of the information concerning crime is in the
database on the server side. Prototyping the relational database system is the main goal of this
work.
Smartphones, tablets, and PCs can all be used to access the database system. Any browser can
be used by the client to login to the system. SQL Server 2019 or 2020 Express will be installed on
the server.
CONCEPTUAL DESIGN
1. Case:
The issue to be investigated by the police, and resolved by the court. It has
attributes like case id, officer id, FIR number, law number, detail, status.
2. Crime:
The offense to be punished by law. It has attributes like crime id, FIR number,
crime name, crime type, date occurred, time occurred, city, sub city, kebelle.
3. Victim:
The person harmed, injured, or killed as a result of a crime. It has attributes like
victim id, NID, first name, middle name, last name, sex, birth date, nationality,
education, nationality.
4. Accused:
The person who is charged with crime. It has attributes like accused id, NID, first
name, middle name, last name, sex, nationality, education, occupation, status.
5. Wanted:
The accused, wanted by police. It has attributes like wanted id, height, scar, most
wanted, detail.
6. Petitioner:
The person who complaints under the jurisdiction of police. It has attributes like
NID, first name, middle name, last name, city, sub city, kebelle, house no, phone
number.
7. FIR:
First Information Report, written by the police after they gather information from
the petitioner about the criminal case. It has attributes like FIR no, NID, date
reported, time reported, detail.
8. Officer:
The police officer who makes investigation on the case. It has attributes like officer
id, first name, middle name, last name, rank.
RELATIONAL MODEL
Victim_ ID is not same as the NID. One person can be victim in several times and cannot take
the same Victim_ ID twice or more. Victim_ ID is generated while a FIR is reported.
Victim_ ID ⟶ {NID, First_ Name, Middle_ Name, Last_ Name, Sex, Birth_ Date, Nationality,
Education, Occupation}
Accuse NID First_ Middl Last_ Se Birth_ Nationa Educati Occupa Status
d_ ID Nam e_ Name x Date lity on tion
e Name
1 5646896 Yona Habta Haile M 16/08/1 Ethiopia Highsch Driver Wante
512 s mu 985 n ool d
2 8975654 Mikiy Worku Belay M 05/11/1 Ethiopia Masters Teacher Releas
612 as 990 n ed
3 4687898 Hele Fikadu Hailesl F 29/01/1 Ethiopia Diplom Secretar Arrest
998 n ase 986 n a y ed
Accused_ ID is not same as the NID. One person can be accused in several times and cannot
take the same Accused_ ID twice or more. Accused_ ID is generated while a FIR is reported.
Accused_ ID ⟶ {NID, First_ Name, Middle_ Name, Last_ Name, Sex, Birth_ Date, Nationality,
Education, Occupation, Status}
Crime_ ID ⟶ {FIR_ No, Crime_ Name, Crime_ Type, Date_ Occurred, Time_ Occurred, City,
Sub_ City, Kebelle}
{Officer_ ID, Law_ No} ⟶ {Case_ ID, FIR_ No, Status, Detail}
Accused_ ID ⟶ Wanted_ ID
PHYSICAL DESIGN
Sex Char
Birth_ Date Varchar
Nationality Varchar
Education Varchar
Occupation Varchar
Status Varchar
Backup servers will be available for the database system. Each piece of data
from the primary servers will be replicated on these servers. The backup
servers are employed when the primary servers malfunction or when data
recovery is required.
Rank and access levels determine the privileges that users of this system
have. Users must enter their username and password in order to log into
the system, which is done for security reasons.
The system can eventually incorporate AI to improve efficiency. Facial
recognition and image enhancement technologies can be used to solve
cases more quickly thanks to the integration of AI with the police database
system.
SQL CODE
create table petition(NID int,
create database police_station; first_name varchar(50),
use police_station; middle_name varchar(50),
create table officer(officer_id int, last_name varchar(50),
first_name varchar(50), city varchar(25),
middle_name varchar(50), sub_city varchar(25),
last_name varchar(50), kebelle int,
ranking varchar(50), house_no int,
primary key(officer_id)); phone_no varchar(10),
primary key(NID));
create table cases(case_id int,
officer_id int,
FIR_no int,
law_no int, create table FIR(FIR_no int,
case_status varchar(100), NID INT,
detail varchar(100), date_reported date,
birth_date date,
nationality varchar(50),
education varchar(100),
alter table cases add foreign key(officer_id) references officer(officer_id) on delete set null;
alter table cases add foreign key(FIR_no) references FIR(FIR_no) on delete set null;
alter table crime add foreign key(FIR_no) references FIR(FIR_no) on delete set null;