Professional Documents
Culture Documents
DESIGN .......................................................................................................................................................... 2
INTRODUCTION ......................................................................................................................................... 2
I. CONCEPTUAL DATABASE DESGN ................................................................................................. 2
ENTITY RELATION (ER)........................................................................................................................... 3
2. Logical database design ................................................................................................................ 4
Logical schema or relational schema .................................................................................................... 4
Logical diagram ..................................................................................................................................... 5
3. Physical design .............................................................................................................................. 6
Physical diagram ................................................................................................................................... 7
GUI (GRAPHICAL USER INTERFACE)..................................................................................................... 9
CONCLUSION ......................................................................................................................................... 9
1
DESIGN
This include logical (entity relationship) and physical (table column and key) design tools for
data. Physical data modeling is becoming mandatory for applications using relational database
management systems .strong support for physical for physical modeling is paired with
facilities to manage multiple models,tosubmodel or extract from larger models for establishing
tables.
INTRODUCTION
I. CONCEPTUAL DATABASE DESGN is a process of constructing a model of data used in
a enterprises or company.
1. Conceptual schema is a process of identifying an entities and attributes.
Entities Attributes
Doctor Doctor-ID
First name
Middle name
Last name
Address
Phone number
Date of Birth
Nurse Nurse-ID
First name
Middle name
Last name
Address
Phone number
Date of Birth
Patient Patient-ID
First name
Middle name
Last name
Address
Phone number
Date of Birth
2
Staff Staff-ID
Name
Phone number
Address
ENTITY RELATION (ER) is a conceptual data model that views a real world entity and
relationships.
ERD
name First name
Doctor-ID
Last name
Phone
no
Staff manage Doctor
Phone
address Staff-ID number Address
Control treat
First name
Nurse-ID Patient-ID
First name
Nurse save
Patient
Dateof
Birth Last name
Date of
Last name
birth
Address
Phone
Address
number
Phone
number
3
2. Logical database designis process of constructing a database on a specific data
model.
Staff
Staff-ID Phone number address name
Doctor
Doctor-ID First name Last name Phone Address Date of Staff-ID
number birth
Patient
Patient-ID First name Last name Address Phone Date of Doctor-ID
number birth
Nurse
Nurse-ID First name Last name address Phone Date of Patient-ID
number birth
4
Logical diagram(relational diagram) describes attributes and relationships
Staff Patient
Staff-ID Patient-ID
Phone number
Date of birth
Doctor-ID
Doctor Nurse
Doctor-ID Nurse-ID
Address Address
Staff-ID Patient-ID
5
3. Physical design is a process of producing implementation and description of
database.
A .Physical schema
Staff
Attribute Staff-ID Name Address Phone number
Data type varchar varchar varchar varchar
Primary key - - -
Foreign key - - - -
NULL NOT NULL YES YES NOTNULL
Doctor
Attribute Doctor-ID First name Last name address Phone Date of Staff-ID
number birth
Data type varchar varchar varchar varchar varchar Date varchar
Primary - - - - - -
key
Foreign - - - - - -
key
NULL NOT NOT NOT YES NOT YES NOT
NULL NULL NULL NULL NULL
Patient
Attribute Patient-ID First name Last name Phone address Date of Doctor-ID
number birth
Data type Varchar varchar varchar varchar varchar Date varchar
Primary - - - - - -
key
Foreign key - - - - - -
NULL NOT NOT NOT NOT YES YES NOT
NULL NULL NULL NULL NULL
6
Nurse
Attribute Nurse-ID First name Last name Date of address Phone Patient-ID
birth number
Data type Varchar varchar varchar date varchar varchar varchar
Primary - - - - - -
key
Foreign key - - - - - -
NULL NOT NOT NOT YES YES YES NOT
NULL NULL NULL NULL
Physical diagram
Staff
Staff-IDvarchar(15) NOT NULL PK
Namevarchar(10)
Phone numbervarchar(15) NOT NULL
Addressvarchar(10)
Doctor
Nurse
8
GUI (GRAPHICAL USER INTERFACE)
CONCLUSION
The system will allow the different users to access data in database. This system saves time and
keep the patents to enjoy and get the best quality services.