Professional Documents
Culture Documents
Database Management Systems
Database Management Systems
Database Management Systems
Management
Systems
© G Campbell 2021 1
Learner Outcomes:
© G Campbell 2021 2
Exercise - Label the Diagram
Database
Record
Database Administrator
Field
Table
Database Management System
Primary key
Character
© G Campbell 2021 3
What is a DBMS?
A database management system is
complex software that constructs and
maintains a database.
It is application software that allows
creation, access, and management of a
database
List some examples
© G Campbell 2021 4
Examples of DBMSes
Microsoft Access
Oracle
MySQL
DB2
SQL Server
Visual Foxpro
© G Campbell 2021 5
Features common to most DBMSes
Character
Field
Data type
Record
Primary key
Foreign key
Table
Form
Query
Report
Backup
© G Campbell 2021 6
What is a character?
A single byte which represents a number,
letter, punctuation mark or other symbol
© G Campbell 2021 7
What is a field?
A characteristic of an entity
An entity is any person, place or thing that we capture
data on.
All fields must have a field/data type (give examples)
Fields can have field properties
© G Campbell 2021 8
What is a primary key?
A field or group of fields that uniquely identify a record
Must have a value (cannot be null)
Links to foreign key of another table
Give some examples of fields that are unique
© G Campbell 2021 9
Examples of fields that are unique
TRN
Student id number
Employee id number
License plate number
Passport number
NIS number
Chassis number
Engine number
Part number
Reference number
International Standard Book Number (ISBN)
Bar code
Department id
© G Campbell 2021 10
What is a foreign key?
The primary key of one entity that is placed in
a second entity for the purpose of accessing
the first entity.
In other words, it is used to create
relationships or link tables.
© G Campbell 2021 11
What is a record?
A group of related fields about a particular entity.
It contains information about a given person, place,
event or thing
© G Campbell 2021 12
What is a table?
A group of related records
It captures all of the records of a particular type of
entity
A table structure is made up of fields, data/field
types, field descriptions, primary key, field
properties.
© G Campbell 2021 13
What is a database?
A group of related tables
An organized collection of data
© G Campbell 2021 14
Examples of databases in society
Common examples of databases in society
include:
Payroll, Employee data, Inventory
management/Stock, Sales, Customer data,
Supplier data, Library book management,
Banking, Student record keeping, Hotel guest list
etc.
In other words, every type of information system
has a database to store the data.
Now you know why a DBMS is important.
© G Campbell 2021 15
Functions of a DBMS
Data dictionary
Retrieval and maintenance
Query
Forms
Reports
Security
Backup & Recovery
© G Campbell 2021 16
A Query (showing criteria)
A request for data from a database. Usually the
request is to retrieve data based on
criteria/conditions; however, data can also be
manipulated using queries.
© G Campbell 2021 17
A Form
A form is a database object that you can use to enter, edit, or
display data from a table or a query. You can use forms to
control access to data, such as which fields of data are
displayed.
© G Campbell 2021 18
A Report
A database report is the formatted result of database
queries and contains useful data for decision-making and
analysis. Most good business applications contain a built-in
reporting tool; this is simply a front-end interface that
calls or runs back-end database queries that are
formatted for easy application usage.
© G Campbell 2021 19
Advantages of a DBMS
Less data redundancy
Standardization
Better/improved data integrity
Shared data
Easier and Faster access/retrieval
Security
Availability
Extensibility
© G Campbell 2021 21
Payroll system database structure
Employee (TRN, Fname, Lname, DOB, Addr1,
Addr2, Tel, Sex, JobCode)
Jobs (JobCode, JobDescription, Salary)
Hours Worked (TRN, Date, TimeIn, TimeOut)
© G Campbell 2021 23
Practice questions
© G Campbell 2021 24
2. John’s name, id number and phone
number together create his _______.
A. Database
B. Field
C. Record
D. Table
© G Campbell 2021 25
3. All of the following are examples of
DBMS’s EXCEPT:
A. MS-Access
B. Oracle
C. MS-Word
D. DB2
© G Campbell 2021 26
4. Which of the following is an
advantage of a DBMS?
A. Requires less memory
B. Improved data integrity
C. Increased programming time
D. More data redundancy
© G Campbell 2021 27
5. In which category would you place
MS-Access?
A. System software
B. Application software
C. Operating System
D. Utility
© G Campbell 2021 28
6. Software which constructs and maintains
a database in a controlled way is:
A. Database
B. Recording
C. DBMS
D. MS-Office
© G Campbell 2021 29
7. Which data type would be most
appropriate for your address?
A. Text
B. Number
C. Yes/No
D. Date/Time
© G Campbell 2021 30
8. Which of the following is NOT TRUE
about primary keys?
A. A primary key can be made up of more
than one field
B. A primary key is a unique identifier
C. A primary key allows NULL values
D. A primary key is used to relate tables to
each other
© G Campbell 2021 31