Professional Documents
Culture Documents
faculty of science
Computer Science
Prepared by :
Name : hakar tayar abdi
Department : computer science
Group : B
Stage : 3
Data : 24/12/2020
:”
“
1
Table of Contents
Abstract ................................................................................................................................ 3
Introduction ......................................................................................................................... 4
mayor ................................................................................................................................... 4
Employee ............................................................................................................................. 4
Engineering .......................................................................................................................... 4
Amiras section ...................................................................................................................... 5
Accounting section ............................................................................................................... 5
Query section ....................................................................................................................... 5
The service section ............................................................................................................... 5
Admin ................................................................................................................................... 6
User ...................................................................................................................................... 6
ER–Diagram .......................................................................................................................... 7
ER-Diagram explain .............................................................................................................. 8
EER-Diagram ......................................................................................................................... 9
EER-diagram explains ......................................................................................................... 10
Conclusion .......................................................................................................................... 10
References :........................................................................................................................ 11
2
Abstract
As a computer science student, I decided to create a database project
for the municipality, a definition for the municipality of a government
base that works to serve citizens, such as building roads and roads, and
cleaning the city is one of the main jobs of this center. This base
consists of several sections.
1 - director
2- Accounting.
3- Administration
4- Device
5- Service
6- Engineering
7- Law
My effort in this program is to be able to make their work easier, for
example, if we take the accounting section in this section, all commands
He has his salary, all the information of employees is required: (name,
age, place, salary, service ...) To get rid of writing pages and pens, I will
create database for this section and all other departments, and we can
also provide all the information of the employee we want through this
program and do his math work quickly and properly,
Also ,we have a part of the people to deliver all their complaints to the
mayor, for example, if there is a bad place like their way or anything
else ,those people can complain through the pictures and look for their
voices and make them soon. Part of it is specific to your employees
and information. For example: this table is for employees information
3
Introduction
First/ this project will be for the municipality ,as it is clear , consists of
several section (device , accounting , engineering , law) my speech Is to
create the database for each of these to carry out their information , as
well as to their information and make their work easier;
mayor
Thy mayor / mayor will have all the information about the mayors of the
previous and present , anyone who has worked as mayor will have
information in this database as :{ name , age , service , certificate ,
gender…}
Employee
The employee section in this section will provide inform tion about each
employee suck as { name , age , city service , phone number …} If we
have 100 employee we cannot search for the name list to see the
employees information. Here , the person who works the name as a
manager can easily write the name of the employee if his name Name is
in the database , the information will be revealed if he dosent have a
name he tells us sorry this name is not,
Engineering
The engineering department of this section consists of tow stage :
1- The estimate section
4
department and the accounting department spends The money the see
in this database and then the drawing department starts building the
project
Amiras section
Amiras department like any municipality consists of several articles and car
vehicles in which the database of the section is written on their own account
and how many number they needs ;
Accounting section
Query section
The query section in this section will visit any employee who has a license any
favorite or unavailable countries will have all the information in this database if
the employee visits and deserves the License they will immediately send his
name to the manager database and he will be approved that he or she is not
allowed to work if not allowed he or she will not accept it and he will not be
able to receive the license
5
receiving their salaries to find out that the worker works with them and pay
them their salaries completely.
Rool
Admin
User
User/ each part of this system will be a user or some user this user can edit the
data of it parts but he or she dose not have the right to edit it in other parts ,
for example if you take the user accounting department this section can
change and update and delete information in its own section but it is does not
have the right to go to engineering and editing because it has a private user
engineering department only.
6
ER–Diagram
ER-Diagram explain
5- The service/ this table will be (relationshipship) with the department table and its
type will be (many to many) because there may be many services to go to and
the department may perform a lot of services and the service table type will be
(partial) because it may have services and may not, the other type of department
table will be (total) because if the service table is scheduled, services must be
performed.
EER-Diagram
manager
Employee Type
Department Type
EER-diagram explains
1-employee
Takes superclass to other tables so for engineer, manager, sof a and
engineer will have its own characteristic which is (type) and its type will
be disjoint because each employee has the right only for a part Work
and we also made another kind of total because each employee may
work for a part if he or she is a guard, and he or she will be counted as
staff and predicuted because any new employee will know what part he
or she will work for through his or her attribute.
2- department
This takes the superclass to the tables listed below so each section will
have its own table and the type will be total because there may be some
other sections, the other type of join will become disjoint because each
department must have one in it.
Explain relational database :
1- We added a table between both the employee and the department because
the type of relationship between the two tablets is many to many in the current
table I added two foreign key having one appointment to the employee's table
and the other one to the table is that we will not be very full in our table.
2- We also added new tablets between both service and section services, so
because the type of relationship between both service and department is
many to many
3- In this project, we have two tablets called component and because we need
to know what part this component is on, so we have relationship with the
cable department and also the way this realization is many to many because
Many people can complain and reach through a report and one person should
have complained about it so we added another tablet to connect both tablets
through foreign key
4- We also have another tablet through the project this project has a reliance
with the department's table in the project type attribute called the (depid) that
this (depid) should be foreign key to the label department as well as the type
of relationship many to one
5- We also have another tablet through the project this project has a reliance
with the department's table in the project type attribute called the (depid) that
this (depid) should be foreign key to the label department as well as the type
of relationship many to one
6- There is one to one type with department management manager this way id
department we know that this section manager should not have more than
one manager and should not be more than one employee because we used
one to one
7- Because we know what part this employee is on, we have created a tablet
called empire dep in this table id one and there is (typeid )in the employee's
table this (typeid) must be foreign key to employee id and also the way this
relationship one to many employees work on a part of it is by employee many
Username
Password
Windows login for each admin and user : Because our program is more secure we
created windows and applications for users of this system that everyone should have
a user name and have a special password so you can go to the next step in this
system
Employee table
In this form, there is all the information of each employee and through the buttons
specified below, Admin can do all these actions such as adding another employee
and removing the employee and you can also ask for the information of the
employee you've been able to identify this employee's type as an accountant and
staff
depnames
And through that red color line, we can know the department of any banner and any
part of our database will appear in this com box, and through the line with number
two that consists of a button we can add another department and go into the
department's table
Manager form
Id department
In the file form, we have problems with the section table through identity, we can
know which part and in our form we have created a citizen who can complain or
according to that citizen you can know which person you complained about and this
was a special complaint department
We brought two group box so we could go to both group box at the start of both our
group box but through those two buttons above it seems that we can reach this
group box
1- Complaint form: to remove the hide group box complaint
2- Citizen form : to remove the hide group box Citizen
Services
In our service table, there is a service name and there is also any service in this
table and you should also know what part this service was, so we created a private
cable and have a department with both id services and id through which part this
service can be available and also through these buttons we can do all these actions
in an easy way
And we can do all the work that appears in this form, for example when this project
starts and when it starts and where this project starts and where it will be
Project
In our service table, there is a service name and there is also any service in this
table and you should also know what part this service was, so we created a private
cable and have a department with both id services and id through which part this
service can be available and also through these buttons we can do all these actions
in an easy way
Conclusion
I learned in this course how to create a database, how to start creating it, how
can I get information. And I learned what diagram is? For both of them, I was
finally able to start building a database project for the municipality. My speech
was to be able to provide a small service, to facilitate my work, and to protect
all information in this project and to organize it in a beautiful way.
References :
[1] Ramez Elmasri and S. B. Navathe, Fundamentals of database systems. Hoboken, New
Jersey: Pearson, 2017.