DB Lecture 1
DB Lecture 1
DATABASE PRINCIPLES
1.0 EXPLAIN CONCEPTS OF DATABASE
MANAGEMENT SYSTEM IN MANAGING
DATA
• Identify types of Databases
• Explain advantages/ Disadvantages of
file processing
• Describe purpose, merits and demerits
of database system
• Explain components of Database 1
TYPES OF
DATABASES
2
OUTLINE
• Data and Big Data Concepts
• Data, Database and DBMS
definitions
• Database Applications
• Example of a Database
(UNIVERSITY)
• Main Characteristics of the
Database Approach
• Database types
3
DATA, DATABASE AND DBMS
• No Database without Data!
10
DATABASE APPLICATIONS
Traditional applications (types of data):
• Numeric and textual databases
More recent applications (based on the
accessibility, purpose and types)
• Multimedia databases
• Geographic Information Systems (GIS)
• Biological and genome databases
• Data warehouses
• Mobile databases
• Real-time and active databases 11
IMPACT OF DATABASES AND
DATABASE TECHNOLOGY
• Businesses: Banking, Insurance, Retail,
Transportation, Healthcare, Manufacturing
14
DBMS FACILITATES
• Define a particular database in terms of its data
types, structures, and constraints
• Construct or load the initial database contents on a
secondary storage medium
• Manipulating the database:
• Retrieval: Querying, generating reports
• Modification: Insertions, deletions and updates to
its content
• Accessing the database through Web applications
• Processing and sharing by a set of concurrent
users and application programs – yet, keeping all
data valid and consistent 15
DBMS FUNCTIONALITIES
• DBMS may additionally provide:
Some entities:
• STUDENT
• COURSE
• MODULE
• DEPARTMENT
• INSTRUCTOR
18
EXAMPLE OF A DATABASE
(WITH A CONCEPTUAL DATA
MODEL)
Some DB relationships:
• MODULEs are of specific COURSE
• STUDENTs take MODULEs
• COURSEs have prerequisite COURSEs
• INSTRUCTORs teach MODULEs
• COURSEs are offered by DEPARTMENTs
• STUDENTs major in DEPARTMENTs
20
RELATIONA MODEL
21
MAIN CHARACTERISTICS OF THE
DATABASE APPROACH (1)
Self-describing nature of a database
system:
• A DBMS catalog stores the description of a
particular database (e.g. data structures, types,
and constraints)
• The description is called meta-data*
• This allows the DBMS software to work with
different database applications.
Insulation between programs and data:
• Called program-data independence
• Allows changing data structures and storage 22
EXAMPLE OF A SIMPLIFIED
DATABASE CATALOG
23
MAIN CHARACTERISTICS OF THE
DATABASE APPROACH (2)
Data abstraction:
• A data model is used to hide storage
details and present the users with a
conceptual view of the database.
• Programs refer to the data model
constructs rather than data storage details
Support of multiple views of the data:
• Each user may see a different view of the
database, which describes only the data of
interest to that user.
24
MAIN CHARACTERISTICS OF THE
DATABASE APPROACH (3)
Sharing of data and multi-user
transaction processing:
• Allowing a set of concurrent users to retrieve
from and to update the database.
• Concurrency control within the DBMS guarantees
that each transaction is correctly executed or
aborted
• Recovery subsystem ensures each completed
transaction has its effect permanently recorded in
the database
• OLTP (Online Transaction Processing) is a major
part of database applications; allows hundreds of 25
DATABASES TYPES
26
27
DATABASE TYPES
• Hierarchical databases
• Network databases
• Object-oriented databases
• Relational databases
• Cloud Database
• Centralized Database
• Distributed Database
• NoSQL databases
To be continued on DB Lecture
3… 28
29
CA EVALUATIONS
CA Measureme
Target
Components nt
Test 100% 20
Practical Test 100% 10
Assignment 100% 10
Total Average(3) 40
THANK
YOU
Happyness Munissi
[email protected]
om