Database Management Systems
Database Management Systems
Databases
l We will discuss
l Uses for databases
l How information may be organized in
databases
l How it may be processed
2
Data Organization
l Character – a single letter, number, or
character (ex: A)
l Field – a set of related characters (ex: Last
Name)
l Record – a set of related fields (ex: all
information on a specific drivers license)
l Table – a collection of related records (ex: all
drivers licenses for Mobile County)
l Database – a collection of related files (ex: all
drivers license files for the state of Alabama)
3
Key Fields
4
Processing of Data
6
Sequential File Storage
7
Direct file storage
l Directfile storage - records are stored on
a disk in a particular address that can be
determined by their key field; can be
stored on disk.
l Adv - very efficient when finding a specific
record and does not require looking through
each one in order to access it
l Disadv - more storage space is required on
the disk, which may not be as good when
accessing large portions of the record.
8
Index sequential
9
Index sequential (cont)
10
Benefits of Databases
l Data Sharing – information in one department can
be readily shared with other departments.
l Security – users can be given passwords and/or
access only to the kind of information they need to
know while containing all of the information only
once in the database.
l Data Redundancy – fewer files are necessary; the
data is stored only once and in one location. This
reduces the storage space needed.
l Data Integrity – Changes made in the file will
update all occurrences of the information.
11
Database Management Systems
l Relational Database
13
Hierarchical Databases
15
Network Databases
16
Network Databases
l Fasterthan hierarchical
l Less data redundancy
20
Types of Databases