Professional Documents
Culture Documents
Relational Database
Relational Database
Relational Database
Database
Adapted from :
Hall (2011)
Database Model
Database Flat-file
+ No data redundancy – Data stored individually by each units in
separated storage.
+ Single Update – Need multiple updates to change data in all
+ Current Values files.
– If a change is not well disseminated among
+ Task-data independence all users, inaccuracy of decision-making will
- Risk of unauthorized access more likely to happen.
– Since the data is exclusively owned by each
user, it is limitedly accessible.
Database Environment
1. Program development
Physical 2. Backup and recovery
DB Elements DBMS 3. Database usage reporting
4. Database access
Magnetic spots
on magnetic disks
DBA
Database Management System
(DBMS)
A Software for
Managing Access to
Database by a variety
of authorized users
Database Approaches
Relational
- Database with tabular schema
Network (comprises rows and columns)
- Most-used currently
- First proposed by E. F. Codd in
the late 1960’s
Hierarchial
Navigational /
Structured Models
Database Administrator
Associations and Cardinality
The Physical
Database Tables
Properly designed tables possess the following four
characteristics:
Update
Anomalies
Insertion
Deletion
Normalizing Tables
One or more of these anomalies will exist in tables that are not normalized or are
normalized at a low level, such as first normal form (1NF) or second normal form (2NF).
To be free of anomalies, tables must be normalized to the third normal form (3NF) level.
The resulting tables will then meet the two conditions below:
1. All non-key (data) attributes in the table are dependent on (defined by) the primary
key.
2. All non-key attributes are independent of the other non-key attributes.
Accountant’s role?
Designing Relational Databases
1. Identify entities.
2. Construct a data model showing entity associations.
3. Add primary keys and attributes to the model.
4. Normalize the data model and add foreign keys.
5. Construct the physical database.
6. Prepare the user views.
1. Identify
Entities
a. Condition 1. An entity must
consist of two or more
occurrences.
3. Supplier – PO (1:0,M)
4. PO – RR (1:1)
5. RR – Inventory (0,M:M)
3. Add primary keys and
attributes to the model.
4. Normalize the data
model and add foreign
keys.
5. Construct the
physical database
Relational Database Queries
Romney & Steinbart (2018)
Page 122
THANK YOU