Database Design and Development
Database Design and Development
Table of Contents
Table of Figures ................................................................................................................. 3
Acknowledgement ............................................................................................................. 5
Introduction ...................................................................................................................... 6
Functions of DBMS..................................................................................................................... 9
Keys ......................................................................................................................................... 11
Normalization .......................................................................................................................... 15
................................................................................................................................................ 23
EER Diagram.................................................................................................................... 29
ER Diagram ..................................................................................................................... 30
J/IT/18/12/01 1
.................................................................................................................................................................... 58
Trigger ..................................................................................................................................... 79
Before Update Trigger ................................................................................................................................ 79
Before Update Trigger ................................................................................................................................ 80
Part 3.1: Explain the Data Validation & Verification Process. ........................................... 83
J/IT/18/12/01 2
Table of Figures
Figure 1:Sample Database Design 10
Figure 2:Primary Key in Database 11
Figure 3:Foreign Key Sample Image 12
Figure 4:One to One Relationship 13
Figure 5:One to Many Relation 13
Figure 6:Many to Many Relationship 14
Figure 7:Symbols of ER Diagram 22
Figure 8:Sample ER Diagram 23
Figure 9:Create a Database 27
Figure 10:Inserting Table in to Database 27
Figure 11:Inserting Details to Table 28
Figure 12:Sample Database 28
Figure 13:EER Diagram 29
Figure 14:Entity Relationship Diagram 30
Figure 15:Mockups User Id 31
Figure 16:Main Page of DBMS 32
Figure 17:Patient Information Page 32
Figure 18:To Make Appointments 33
Figure 19:Norman Hospital Doctors Information 33
Figure 20:In this picture the doctors will know about their patient 34
Figure 21:This about the house officers 34
Figure 22:Patient visit time information 35
Figure 23:Ward information of patients 35
Figure 24:Admission of every patient 36
Figure 25:ICU patients Information 36
Figure 26:Discharge information of patients 37
Figure 27:Pharmacy details 37
Figure 28:before Forward Engineering 40
Figure 29:Example 40
Figure 30:Previleges matrix 55
J/IT/18/12/01 3
Table Of Tables
Table 1:Table of User Information 15
Table 2:Patient Information 17
Table 3:1st normalization Doctor table 17
Table 4:Prescription 17
Table 5:Hospital Admit 17
Table 6:Patient Visit 18
Table 7:Patient Info 19
Table 8:Patient Appointment 19
Table 9:Doctor Info 19
Table 10:Consultation Prescription 19
Table 11:Admission Appointment 20
Table 12:Admission Counter 20
Table 13:Ward Information 20
Table 14:Doctor patient visit 20
Table 15:House officer info 20
Table 16:Discharge info 21
Table 17:ICU Info 21
Table 18:Pharmacy information 21
J/IT/18/12/01 4
Acknowledgement
The success of this assignment required a lot of guidance and assistance from my
classmates, lectures and I am extremely thankful to get this all along the completion
of my assignment work.
Whatever I have done is only due to such guidance and assistance and I would not
forget to thank them. I respect and thank Mr. M. Kartheeban for giving me an
opportunity to do this assignment on time, I extremely grateful to him for providing
such a nice support and guidance.
I am really grateful because I managed to complete this assignment within the time
given by my lecturer. This assignment cannot be completed without the effort and co-
operation from my class mates. I would like to express my gratitude to my friends and
respondents for support and willingness to spend some time with me.
A. Stany Nirojan
J/IT/18/12/01 5
Introduction
Databases are at the Centre of most information systems in everyday use, therefore
it is important that they are designed and built using appropriate methods to ensure
that they meet users’ requirements while being robust and maintainable.
A database system is usually regarded as the database which contains related tables
of data maintained by a database management system (DBMS), along with
applications that provide controlled access to the database.
And able to identify how we qualified in database development and how to solve the
problems in easy ways and implement the solution. Finally, I have prepared the
documentation to define what we achieve.
J/IT/18/12/01 6
L01
J/IT/18/12/01 7
J/IT/18/12/01 8
Databases are the main in the most of the system in the modern world. It is designed
and buildup with the user requirements, software requirements and hardware
requirements. A database which contains databases, tables of data and maintain by
the Database Management System (DBMS) with applications controlled that
databases.
Databases are like Backend work process because the Frontend (Applications) are
direct the databases.
Types of Databases
• Transactional Databases – Main function of this database is to add new data,
change existing data, delete existing data. Eg: Client – Server Database
Functions of DBMS
• Data Storage – Database can access by many users so they can storage,
retrieve and update data.
• Retrieve Data
• Update Data
• Data Communication Interfaces – Telecommunications can allow to
transactions of data through remote so, DBMS must provide an interface to
assist the transactions.
J/IT/18/12/01 9
Database Design
• Collecting Information
• Strategy & Planning Process
• Design & Implement Process
Data collecting is the main purpose in creating a database system because users will
tell about their requirements (They can have a imagination that is how our system
would be like). As a Database designer we need to consider about the software
requirements and hardware requirements.
Planning will make the system more accurate and we will find the new needs to fulfill
the customers(users).
Designing will allow to create a logical and physical design and able to identify what
are additional use to make the system effectively and after that the development phase
will start.
J/IT/18/12/01 10
Keys
Primary Key
Primary key is used to uniquely identify the record in the tables. A table wants a unique
identification because there is no way to find a record without possible of finding more
than one record. So, primary key is a heart of a table.
J/IT/18/12/01 11
Foreign Key
Foreign key is the copy of the primary keys. If you get a primary key from a table and
when you put that key into another table it will be as foreign key. After that we will
derive all data to that primary key located table to foreign key located table.
J/IT/18/12/01 12
Relationships in Database
All entities in a database will connected through the relationship. They are:
One – to – One
This relationship implements exactly one entry in both tables. One to one relationship
is a type of 4th Normalization.
One – to – Many
One to many implements one entry to many entries between tables. If you take doctors
and patients, one doctor will treat many patients so doctor is in one and patients will
act as many.
J/IT/18/12/01 13
Many – to – Many
Every record in a table there are many possible records in another related table. If we
take patients entity and ward entity many patients admit in many wards at Norman
hospital so they have a many to many relationships.
J/IT/18/12/01 14
Normalization
Benefits of Normalization
• Storage data will reduce
• The data will be organized correctly
• Easy to search the fields.
Types of Normalization
0 Normal Form
J/IT/18/12/01 15
Eliminate the repeating groups such as similar records in all tables will be become
unique by primary key in each of the tables and the other tables are depend on the
primary key. Rules are:
Patient
§ Patients id
§ Patient name
§ Patient Address
§ Patient age
§ Patient Contact no
§ Appointment no
§ Doctor id
§ Doctor name
§ Doctor Department
§ Patient id
§ Patient name
§ Doctor name
§ Disease
§ Drugs
• We will see the first normalization in this tables. In the Patients entity for every
patient the doctor id, name, doctor name will be repeat. So, we want to create
an entity names doctor and include these columns:
J/IT/18/12/01 16
Patient
Patient name
Patient age
Patient Address
Patient Contact no
Appointment no
Doctor name
Doctor department
Doctor
Table 3:1st normalization Doctor table
Doctor name
Doctor Department
Prescription
Table 4:Prescription
Patient name
Patient age
Doctor name
disease
Name of the drugs
Hospital Admit
Table 5:Hospital Admit
Patient name
Patient age
Patient gender
Doctor name
Parent/guardian name
Parent/guardian contact no
address
Date and time
Ward number
J/IT/18/12/01 17
Bed number
House officer
Patient Visit
Date
Time
Patient condition
Drugs
House officer
Nurse no
J/IT/18/12/01 18
All non-key values fully function on the primary key. No partial dependencies are
allowed. A partial dependency exists when a field is fully dependent on a part of a
composite primary key.
Composite primary key is a candidate key, that is when two primary keys in a table so
one is primary key and another one is composite primary key.
Patient
Patient id <<PK>>
First name
Last name
Patient age
Gender
City
Street
Patient Contact no
Doctor id <<FK>>
Patient Appointment
Appointment no <<PK>>
Patient id <<FK>>
Doctor
Doctor id <<PK>>
Doctor name
Department
Consultation Prescription
Prescription no <<PK>>
Disease
Patient Type
Patient Appointment no <<FK>>
J/IT/18/12/01 19
Admission Appointment
Admission no <<PK>>
Admit Date
Admit Time
Doctor id <<FK>>
Patient id <<FK>>
Admission Counter
Guardian name
Guardian Contact no
Date
Admission no <<FK>>
Ward no <<FK>>
Bed no <<FK>>
Prescription no <<FK>>
Ward Information
Ward no <<PK>>
Bed no <<PK>>
Patient Condition
House officer id <<FK>>
Nurse no <<PK>>
Nurse name
Doctor id <<FK>>
House officer id <<FK>>
J/IT/18/12/01 20
Discharge Information
Reference no <<PK>>
Date
Time
Admission no <<FK>>
ICU Information
Pharmacy Information
J/IT/18/12/01 21
Entity Relationship Diagram is a visual representation of data and which shows how
the data are connected or related to each other. ER diagrams are frequently used
during the design stage of a development process in order to identify different system
elements and their relationships with each other.
In the Norman Hospital system, we already did the normalization up to 3rd and made
a plan of 12 entities. Before that we will see about the Entity Relational Diagram
Symbols and their meanings.
J/IT/18/12/01 22
J/IT/18/12/01 23
First, we need to prepare the entity diagrams for the informations we have made. So,
I have 13 entities and these entities are patient, doctor, patient appointment, ward
admission, ward information, visit time, file information, house officer, pharmacy,
discharge, ICU, admission counter and prescription.
M 1
Patients Consult Doctors
The relationship between doctor and patients is one to many because one doctor
consults many patients.
Admission M 1
Register Patient
Counter
The relationship between admission counter and patients is many to one because
many patients register in one admission counter.
M 1
Prescription Check Patient
The relationship between patients and prescription is many to one because one patient
will have many prescriptions.
J/IT/18/12/01 24
Patient M 1
Register Patient
Appointment
The relationship between patient appointment and patient is many to one because one
patient will have many appointments.
1 M
Doctor Register Prescriptio
n
The relationship between doctor and prescription is one to many because one doctor
will have many prescriptions.
1 M
Prescription Buy Pharmacy
The relationship between prescription and pharmacy is one to many because one
prescription will accept in many pharmacies.
1 M
House officer Check Visit Time
The relationship between House officer and doctor visit time is one to many because
one house officer will visit in many wards.
J/IT/18/12/01 25
1 M Discharge
Ward Leave Informatio
n
The relationship between Ward and discharge is one to many because one ward will
have many discharges.
J/IT/18/12/01 26
J/IT/18/12/01 27
J/IT/18/12/01 28
EER Diagram
J/IT/18/12/01 29
ER Diagram
J/IT/18/12/01 30
Prototype is used to demonstrate the system like an original view for the users. So,
the users will easily understand how the real system will look like. Adobe XD is a
software tool used to create the prototype of this Database management System
In this page the user of the Norman hospital should enter their user id and password
to go through the database system.
J/IT/18/12/01 31
In this page the users of the Norman Hospital will have different options so they will
select to go to separate pages for that.
In this page the new patient’s will be added and after added press the submit button
so, the details will be go to the database so the patient’s information will be available
through it.
J/IT/18/12/01 32
Patients will able to make appointments to come for checkups to doctors. If you are
new patient our details will be add to patient information page after that they make
appointments.
In this page we have doctors’ details so all doctors in the Norman Hospital will be in
this page so we can access the doctor details by their doctors id.
J/IT/18/12/01 33
Figure 20:In this picture the doctors will know about their patient
In this page we have all patient’s prescription information and it will be accessed by
the prescription numbers.
In this page we have all the house officers who are worked in Norman hospital and
their information’s are accessed by their id.
J/IT/18/12/01 34
In this page the visit time of the doctors to the patient and which house officer and
nurse are hire for that specified time are included.
In this page the ward, bed, admission, and house officer information of every patients
are included.
J/IT/18/12/01 35
If the patient wants to admit in the ward the following informations are collected
through this page.
In this page the patient’s who are admit to the ICU ward will fill up in this page.
J/IT/18/12/01 36
In this page the patients who are discharged from the hospital will be included in this
page.
J/IT/18/12/01 37
Evaluation is a report containing pros and cons of that specific software. So, the
developers will able to make the program or system more accurate and perfect.
In this Database Management System, the details are given by the Norman Hospital
users so we need to make it perfect and accurate.
Norman Health Care Hospital is a public hospital providing treatments for the patients
live in around the city of Galle. This hospital has been started early in 2000 and all the
works are maintained manually up to now. So, I created this database system to make
the work easily.
The details in the database system is more accurate because there is no repeating
values or details. All details in this system are connected each other. If we take the
patients table all new patients will added to that entity (Table) and in prescription the
patient id is as a foreign key so the patient entity details are available or connected to
the prescription entity. Like that all entities are connected so we have fulfilled user
requirements and system requirement like Processor, Ram, Operating System.
User Requirements
Patients
All patient’s have appointment numbers so, we have two entities such as patient,
appointment and patient entity has first name, last name, age, gender, address,
contact number etc.
Doctor
In a hospital system doctors are the most important and this table should have the
doctor_id, doctor name, department and doctor information accessed by the doctor_id
and this attribute act as foreign key in other tables to derive the doctor details.
Admission Counter
If a patient wants to admit in the hospital the patient information should be added to
this table and this table has admission_no, guardian name, guardian contact number,
bed no, ward no and lots of details.
These are some informations of data required by the users so we need to fulfill their
needs and get their satisfaction.
J/IT/18/12/01 38
L02
J/IT/18/12/01 39
I created all the entities or tables needed for the Norman hospital system then going
to forward engineer the schema to get a physical relational database.
Figure 29:Example
J/IT/18/12/01 40
Some Examples
In this I created a table patient using workbench to input all the patient’s details. So, I
put patient id attribute as primary key to access all the patient’s detail to everywhere
in the database system. In this Doctor table Doctor id is become as a foreign key to
view the doctor details.
J/IT/18/12/01 41
In this table we have appointment information they make their appointments. If they
are new patients first their information fills up in the patient table after that come to this
table and make their information. I assign appointment no as a primary key and put
patient’s id as foreign key to access the patient details in the appointment.
J/IT/18/12/01 42
The table contains one primary key name as doctor id and by this primary key the
doctor’s details will be available throughout the database system. It has some int
values and varchar values.
J/IT/18/12/01 43
In this table the disease of the patient, patient type out patient or not they are specified
and we have a specified primary key for this table named as prescription no and this
table access two foreign key named Appointment no and table has int, varchar values.
J/IT/18/12/01 44
In this table a primary key named admission no and this table used for the hospital
admission to admit the patient to ward. And this table has two foreign keys named
patient Id and doctor id and has int and varchar values.
J/IT/18/12/01 45
For each ward there are some house officers to take care of their patients and this
table has their details. All the house officers’ details will be available in this table and
this table has some int, varchar and enum values.
J/IT/18/12/01 46
This table is used to describe the ward information for separate patients. If the person
who admit in this hospital their ward information bed information and all the
information’s will be available in this table.
J/IT/18/12/01 47
J/IT/18/12/01 48
`Bed_no`)
ON DELETE NO ACTION
ON UPDATE NO ACTION,
CONSTRAINT `fk_Admission_Counter_Consultation_Prescription1`
FOREIGN KEY (`Consultation_Prescription_Prescription_no`)
REFERENCES `NormanHospital`. `Consultation_Prescription`
(`Prescription_no`)
ON DELETE NO ACTION
ON UPDATE NO ACTION)
ENGINE = InnoDB;
In this table before the going to admit in the ward the patient’s information should be
fill up in this table and all the patients have a specific admission no so, they can be
easily identified by the doctors, house officers and nurse.
J/IT/18/12/01 49
When the doctor’s visit the patients there will be a nurse and house officer so in this
table the doctor visit will be added.
J/IT/18/12/01 50
When the patients discharge from the hospital this table will be fill up and after that
they will be discharged.
J/IT/18/12/01 51
If the patient admits to ICU the following information’s will be fill up and for the ICU
there is an officer head for the ICU department and this table has foreign keys like
admission no, house officer id and has a primary key named ICU officer id and has
J/IT/18/12/01 52
After discharge the patient need to take medicines so that when the patient go to
pharmacy the table will be fill up.
J/IT/18/12/01 53
MySQL is an open source database management software that helps users to store,
organize and retrieve data. It has lot of options to grant specific users nuanced
permissions within the tables and databases.
Here is a short list of other common possible permissions that users can enjoy.
• ALL PRIVILEGES- as we saw previously, this would allow a MySQL user full
access to a designated database (or if no database is selected, global access
across the system).
• CREATE- allows them to create new tables or databases.
• DROP- allows them to them to delete tables or databases.
• DELETE- allows them to delete rows from tables.
• INSERT- allows them to insert rows into tables.
• SELECT- allows them to use the SELECT command to read through
databases.
• UPDATE- allow them to update table rows.
• GRANT OPTION- allows them to grant or remove other users' privileges.
J/IT/18/12/01 54
The users and privileges are used to administrate the privileges and if you are users
in the Norman hospital, you have several permissions such as delete, update and drop
so you can only do these permissions you can’t access other permissions like insert
etc. The user privileges will not allow you to do other privileges.
This the user’s privileges tab you can click this to create a new user and give that user
their privileges.
J/IT/18/12/01 55
This tab will allow the users how many queries they can do their job and we can set
the account limits.
In the administration level of a system there are roles apply for every users and DBA
is the main role which means it can perform all works and other roles are applied for
specific tasks. It will make our system more accurate because never grant more
access to user accounts and the privileges are added according to their needs.
J/IT/18/12/01 56
This tab will allow to select the other users these are some privileges and decline
others when user select update privileges and use the insert privileges So, that they
can’t access other details.
This a user of Norman hospital and we use the password to access the database.
J/IT/18/12/01 57
This privilege are allow to alter, drop but I need to change the table details it will have
some errors.
This is an error when alter drop column because drop column is not in my privileges.
J/IT/18/12/01 58
Inner Join
In this I select first name, drugs, doctor name from patient entity, doctor entity and
pharmacy entity.
J/IT/18/12/01 59
mysql> select
patient.first_name,patient.gender,consultation_prescription.disease
from patient left join patients_appointment on
patient.patient_id=patients_appointment.patient_patient_id left join
consultation_prescription on
consultation_prescription.patients_appointment_doctor_id=patients_ap
pointment.patient_doctor_doctor_id;
+------------+--------+--------------+
| first_name | gender | disease |
+------------+--------+--------------+
| Nirojan | Male | Chikunkuniya |
| Sanjsi | Male | Malaria |
| Antony | Male | Dengu |
| Mathu | Male | Fever |
| Prana | Male | LooseMotion |
| Anistan | Male | Aids |
| Anton | Male | NULL |
| Thaas | Male | NULL |
| Kunam | Male | NULL |
| Mohammad | Male | NULL |
| Mohammad | Male | NULL |
| Thananji | Male | NULL |
| Aravinthan | Male | NULL |
| Thiviyan | Male | NULL |
| Mayooran | Male | NULL |
| Prathap | Male | NULL |
| Shankavi | Female | NULL |
| Samitha | Female | NULL |
| Saranya | Female | NULL |
| king | Male | NULL |
| Delaselp | Male | NULL |
+------------+--------+--------------+
21 rows in set (0.11 sec)
mysql>
J/IT/18/12/01 60
Right Join
mysql> select
patient.first_name,patient.gender,consultation_prescription.disease
from patient right join patients_appointment on
patient.patient_id=patients_appointment.patient_patient_id right
join consultation_prescription on
consultation_prescription.patients_appointment_doctor_id=patients_ap
pointment.patient_doctor_doctor_id;
+------------+--------+--------------+
| first_name | gender | disease |
+------------+--------+--------------+
| Nirojan | Male | Chikunkuniya |
| Sanjsi | Male | Malaria |
| Antony | Male | Dengu |
| Mathu | Male | Fever |
| Prana | Male | LooseMotion |
| Anistan | Male | Aids |
+------------+--------+--------------+
6 rows in set (0.00 sec)
mysql>
J/IT/18/12/01 61
Full Join
select patient.first_name,consultation_prescription.disease
-> from patient
-> left join consultation_prescription on
consultation_prescription.Patients_Patient_Patient_id
=patient.patient_id
-> union all
-> select patient.first_name,consultation_prescription.disease
-> from patient
-> left join consultation_prescription on
consultation_prescription.Patients_Patient_Patient_id=patient.patien
t_id;
Full join is a combination of right join and the left join and here is the output of full join.
+------------+--------------+
| first_name | disease |
+------------+--------------+
| Nirojan | Chikunkuniya |
| Sanjsi | Malaria |
| Antony | Dengu |
| Mathu | Fever |
| Prana | LooseMotion |
| Anistan | Aids |
| Anton | NULL |
| Thaas | NULL |
| Kunam | NULL |
| Mohammad | NULL |
| Mohammad | NULL |
| Thananji | NULL |
| Aravinthan | NULL |
| Thiviyan | NULL |
| Mayooran | NULL |
| Prathap | NULL |
| Shankavi | NULL |
| Samitha | NULL |
| Saranya | NULL |
| king | NULL |
| Delaselp | NULL |
| Nirojan | Chikunkuniya |
| Sanjsi | Malaria |
| Antony | Dengu |
| Mathu | Fever |
| Prana | LooseMotion |
| Anistan | Aids |
| Anton | NULL |
J/IT/18/12/01 62
| Thaas | NULL |
| Kunam | NULL |
| Mohammad | NULL |
| Mohammad | NULL |
| Thananji | NULL |
| Aravinthan | NULL |
| Thiviyan | NULL |
| Mayooran | NULL |
| Prathap | NULL |
| Shankavi | NULL |
| Samitha | NULL |
| Saranya | NULL |
| king | NULL |
| Delaselp | NULL |
+------------+--------------+
42 rows in set (0.10 sec)
J/IT/18/12/01 63
Insert
J/IT/18/12/01 64
In this patient table I inserted an entry as 22nd Patient_id you can see in the last row/
J/IT/18/12/01 65
Update
In this table I update the name and working time of a worker holding id “1111”.
Delete
J/IT/18/12/01 66
Alter
In this table I alter patient table and add a column name status.
J/IT/18/12/01 67
Modify
In this I have modified the patient table and change the varchar data type of age into
integer type.
J/IT/18/12/01 68
Minimum
I found the minimum reference numbers that discharges and minimum hospital fees
of Norman Hospital.
J/IT/18/12/01 69
Maximum
Average
J/IT/18/12/01 70
In this I find the average hospital fees of patients in the Norman Hospital.
Sum
In this table I find the discharge patients reference numbers and calculate the fees of
a person when discharged from the hospital.
J/IT/18/12/01 71
Count
J/IT/18/12/01 72
mysql> select
first_name,last_name,dateofbirth,timestampdiff(year,dateofbirth,curd
ate())as age, city,patient_mobile_contact_no from patient where
timestampdiff(year,dateofbirth,curdate())between 10 and 50;
In this I derive the details and age from 10 and 50 from a single table.
J/IT/18/12/01 73
mysql> select
first_name,last_name,dateofbirth,timestampdiff(year,dateofbirth,curd
ate())as age,city,
doctor.doctor_name,patients_appointment.appointment_no from
patient,doctor,patients_appointment where
timestampdiff(year,dateofbirth,curdate())between 10 and 50;
In this table I derive the age information from patient, doctor and patient appointment.
J/IT/18/12/01 74
J/IT/18/12/01 75
Stored Procedures
In this I created Stored procedure for Doctors information. And these images are
clearly defined by the steps.
J/IT/18/12/01 76
J/IT/18/12/01 77
View
And I created another view but there is no values and empty set.
mysql>
J/IT/18/12/01 78
Trigger
mysql> delimiter $$
mysql> create trigger Before_Update_Patients
-> before update on patient
-> for each row
-> begin
-> insert into patient_audit
-> set action="update",
-> id=old.patient_id,
-> first_name=old.first_name,
-> changedat=now();
-> end$$
Query OK, 0 rows affected (0.06 sec)
J/IT/18/12/01 79
J/IT/18/12/01 80
J/IT/18/12/01 81
L03
J/IT/18/12/01 82
Data validation and verification are very important in the software industry. It’s mainly
used to avoid the duplicate and wrong data entry in the data basis. The software
systems basically maintained to use in the organizations, companies and shops to
schedule the jobs in the easier manner. Verification and validation identify the
important errors or flaws.
The main concept of verifications is “Are we building the product, right?” and validation
is “are we building the right product?”. The software industries carried out many
projects like management systems and these management related systems are
implemented as web based and window based. In this application data validation part
is very important and there are so many validation methods are carried out by the
developers.
J/IT/18/12/01 83
Data Verification
Data verification is the process of evaluating the completeness, correct and
conformance of a specific data set by various methods.
The project leaders, QA manager, laboratory director, air monitoring personal assist
and the everyone who are participating in the production of data.
Steps of Verification
J/IT/18/12/01 84
Outputs of Verification
• Verified Data.
• Data Verified Record – certification statement that should be signed by the
responsible person and it also identify the non-compliance issues.
The data verification process involves the inspection, analysis, and acceptance of the
field data or samples and these inspections can take the form of technical systems
audits that is internal or external or frequent inspections by field operators and lab
technicians.
These are some of the sample questions ask during the process of verification.
01. Were the environmental data operations performed according to the governing
those operations?
02. Were the environmental data operations performed on the correct time and
date originally specified?
J/IT/18/12/01 85
Data Validation
Data validation is the routine process designed to ensure that reported values meet
the goals of the environmental data operations and data validation is further defined
as examination and provision of objective evidence that the particular requirements
for a specific intended use are fulfilled.
The systematic approach of data validation is used to ensure and assess the quality
of data. The purpose of data validation is to detect and then verify any data values that
may not represent actual air quality conditions at the sampling station. The effective
data validation procedures usually are handled completely independently from the
procedures of initial data collection.
Flags are used alone or in combination to invalidate samples. Specially the appropriate
null data flags be used in place of any routine values that are invalidated. This provides
some indications to data users and data quality assessors to the reasons why data
that was expected to be collected was missing.
These validation methods are very important to develop a software and but mainly
managed systems focus on following validations such as
J/IT/18/12/01 86
Most important point is Data validator must not be the person who developed or
producing the data.
Steps of Validation
• Collect verification records and other needed records – Instrument and Site
logbooks.
• Review of the records to determine the quality of data – were the project meet
the needs.
J/IT/18/12/01 87
Outputs of Validation
• Validated Data.
• Data Validation Report.
All data when it initially entered into the system should be checked for errors so that
bad data does not get put into permanent disk files. “Garbage In”, “Garbage Out” this
process of error checking is called validating or editing.
• Login boxes are given text box for the users for the user id, password and
button for login and cancellation. The user will access the data when the correct
information given.
J/IT/18/12/01 88
03 Insert Insert double values in Value Should Shows the Value Pass
discharge table. be added. values. added.
04 Delete Delete a foreign key in Value should Value Error result. Error
doctors visit. be deleted. should not
delete.
05 update Update only doctor id Value should Value No value Invalid Test
value in doctor table. not be should not added.
added. add.
06 Delete Delete a row in patient Row should No values Get Invalid Test
Row table be deleted deleted. unexpected
result.
J/IT/18/12/01 89
Error report is used to indicate the problems that are faced during the made up of
database system and used to make the system more reliable and accurate.
Name
J/IT/18/12/01 90
I have faced so many problems when forward engineer. First, I created the tables and
details through the workbench and forward engineer that but it was showing the
message completed with the errors.
This error was found lots of time because I’m using workbench in MacOS so that some
syntax like Visible error appear so after that I delete visible in all my coding’s after that
is worked.
J/IT/18/12/01 91
Minimum Error
This is a small error found when I get the minimum pharmacy fees then I solved out it.
The reason for the error is I put * symbol near the select.
+----------------------+-----------+---------------+
| pharmacy_customer_no | drugs | pharmacy_fees |
+----------------------+-----------+---------------+
| 101 | Vitamin C | 1200 |
+----------------------+-----------+---------------+
1 row in set (0.00 sec)
J/IT/18/12/01 92
This error I found when I change the details by modifying the patient table and the
reason for the error is I put the = sign in between the datatype and name. After that I
solved out that.
Database Error
mysql> show databases;
+--------------------+
| Database |
+--------------------+
| information_schema |
| NormanHospital |
| mysql |
| performance_schema |
| test |
+--------------------+
5 rows in set (0.00 sec)
This error when I choose the database to implement the database and error comes
out because I made some spelling mistakes for the database name “normanhospital”
as “normanhospitl”. After that I solved out it.
J/IT/18/12/01 93
Sum Error
When I want to find the sum of two calculations there is an error appear that because
the fees table does not exist. After that I solved out it.
Delete Error
This error when I want to delete a detail from the doctor table the error says that can’t
delete the parent row. So I solved it.
These are the error I faced when producing the databases and these errors are make
the database system more reliable and comfort to use.
J/IT/18/12/01 94
Technical Manual
J/IT/18/12/01 95
In this program there are lots of data types like integer, varchar, float, double, date,
time, enum and etc. The foreign keys are used in lot of tables to derive information
from one table to another table. All tables has a primary key and some primary key
like Patient_id, doctor_id are act as foreign keys in many tables. Because most of the
tables want to derive informations from the tables by foreign keys.
I created some stored procedures like for doctor table you can view in database and
for the protection of the database I have created user privilege named as
NormanHospital.
I created the before update and after update triggers to keep the security of the system
more flexible. So, if you update any information on the tables it will be added after
update audit table and before update trigger table by triggers.
User Manual
It is essential for user documentation to fit the user’s needs. An audience analysis
has
to be done. t is obviously important to capture the purpose of the database system.
Furthermore, the documentation has to capture the work flows which accomplish the
various tasks of the domain and what to do in case of errors (troubleshooting). It should
J/IT/18/12/01 96
guide the user on the way of accomplishing certain tasks with the database system.
Another approach
is to explain the database system itself.
Press Run to Start the configuration and this popup show the location where the mysql
will install.
J/IT/18/12/01 97
Here you choose what you want to do. You can install MySQL products, inquire about
MySQL, or check physical resource components. Provided you installed the pre
requisites listed above, you should be prepared to install MySQL Products. Click
the Install MySQL Products ink to proceed or one of the others to explore.
J/IT/18/12/01 98
Some of the are we need to press next only and after that this step will appear. Installer
screen performs displays the products that it’ll install, which are listed below and available in
the full image to the left. Click the Execute button to install the products.
J/IT/18/12/01 99
In this page we can set the specific account password and keep our account secure.
J/IT/18/12/01 100
Step 5: Completion
After the execution of MySQL products some steps appear press only next and after
that the installation will complete and you can start using it.
My SQL Table:
J/IT/18/12/01 101
The improvement on the database system will be more flexible and data will be easier
to access and use. More processing will be done on the edge to facilitate real time
computations and decision making.
It’s very important for our database community to understand these changes and
embrace them, because otherwise they are swept away in the future.
The database systems in the future are going to be very different than what we have
today.
• Making data easier to use. Data allows us to learn faster. Gather data
implicitly by watching what people do.\
• Big Data Linked to Existing Data - Companies generate big data when
pursuing strategies such as the Internet of Things, or tracking web clickstream
data for customer trends. But the deep insights come from blending that new
big data with data companies already have.
J/IT/18/12/01 102
Conclusion
I got the knowledge about the database systems, future improvements and some
methods in mysql like Creating Prototypes and some exercises like example minimum,
finding age, average, create trigger, join many tables etc. finally all above I have got
some ideas of creating one database management and Adobe XD. I think I have got
expected output in this assignment. thank you.
A. Stany Nirojan.
J/IT/18/12/01
J/IT/18/12/01 103
References
J/IT/18/12/01 104