Chapter 1
Chapter 1
SYSTEMS(ITEC2071)
Fundamentals of database systems
2
Course Information
Contact details
Assessment
Gemeda Raga 40% Coursework
Some lab-marked exercises
gamadaraga143@gmail.com
A written exercise with a
Office: database design
60% Examination
written exam
Answer all of the questions
Integrity problems
Integrity constraints
Hard to add new constraints or change existing ones
Atomicity of updates
Failures may leave database in an inconsistent state with
partial updates carried out
Example: Transfer of funds from one account to another
should either complete or not happen at all
Concurrent access by multiple users
Concurrent access needed for performance
Uncontrolled concurrent accesses can lead to inconsistencies
Example: Two people reading a balance and updating
it at the same time
Security problems
Hard to provide user access to some, but not all, data
Arose because:
Definition of data was embedded in application programs,
rather than being stored separately and independently
No control over access and manipulation of data beyond
that imposed by application programs
Result:
The Database and Database Management System (DBMS).
Personal file
(Project
Database Department file database)
Payroll file
Characters
(bytes) 1000100 (Letter ‘F’ in ASCII)
Fundamental database Systems April 2021
Terminology
16
Database
A collection of integrated and related files
File
A collection of related records
Record
A collection of related fields
Field
A group of characters
Character
Basic building block of information, represented by a
byte
MS Access
Application program A
Ingres
computer that interacts with
the database by issuing an PostgreSQL
program appropriate request MySQL
(typically an SQL statement)
to the DBMS.
Fundamental database Systems April 2021
Database Management Systems
26
Hierarchical
Network
Relational
Figure
Fundamental database Systems
1.10
36 2021
April
Network Database Model
Advantages
Conceptual simplicity
Handles more relationship types
Data access flexibility
Promotes database integrity
Data independence
Conformance to standards
Disadvantages
System complexity
Lack of structural independence
Figure 1.11
Advantages
Structural independence
Semantic Overloading
Relational model has only one construct for representing
data and data relationships: the table.
Relational model is semantically overloaded.
Impedance Mismatch
Most DMLs lack computational completeness.
To overcome this, SQL can be embedded in a high-level
3GL.
This produces an impedance mismatch - mixing different
programming paradigms.
rerequisite
pre requisite course numbe r
number
cosc3380 cosc3320
cosc3330 math2410
cosc3320 cosc1310
Fields
Records
Queries
Reports