Syllabus
Concepts of database systems
Database systems environment
The Database Management System (DBMS)
Database 2 – C309
The Relational Data Model
Database Design Process
3MISE
Entity – Relational Modeling
Conceptual Database Design
Logical Database Design for Relational
Model
Physical Database Design for Relational
Database
Syllabus
Data Normalization
Database Languages INTRODUCTION
Structured Query Language (SQL)
Advanced SQL Foundations of Business
Query-BY-Example (QBE) Intelligence:
Database Application using MS-Access Databases and
Database Security Information Management
• Database on the Web (PHP)
1
10/24/2018
2
10/24/2018
Database System Environment Problems with the traditional file processing (files
maintained separately by different departments)
11
3
10/24/2018
Each application
requires a unique
data file that is
likely to be a
subset of the
master file.
These subsets of
the master file
lead to data
redundancy and
inconsistency,
processing
inflexibility, and
wasted storage
resources.
4
10/24/2018
DBMS
Data Definition Proprietary Language Data Manipulation
Language (DDL) and Tools Language (DML)
DATABASE ENGINE
USER 1-18
METADATA
DATA
5
10/24/2018
Data models and Database - Data base Design Data Modeling Using the Entity-Relationship Model
A Data Model:
A type of data abstraction that can be used to provide a conceptual
representation of data.
Data base design has three levels (models):
A) High Level Data Model (External or Conceptual Schema):
A concise description of users’ data requirement and detailed
description of data types , relationships and constraints using the Simplified
concepts provided by the model (entities, attributes and relationships) Description
B) Implementation Data Model: of the Data
Base Design
Actual representation of database using a commercial DBMS
Process
(relational, network or hierarchical) – a data model mapping is
needed to transform from high model into implementation model
C) Physical Data Model (Internal Schema):
Describes the physical storage structure of the database
Types of DBMS
3- Object-Oriented DBMS (OODBMS)
Hierarchical and Network DBMS: Older • Stores data and procedures as objects
systems
• Capable of managing graphics,
1- Hierarchical DBMS: Models one-to- multimedia, Java applets
many relationships
• Relatively slow compared with
2- Network DBMS: Models many-to-many relational DBMS for processing large
relationships numbers of transactions
• Both less flexible than relational DBMS 4- Hybrid object-relational DBMS:
and do not support ad hoc, natural
language Provide capabilities of both OODBMS
and relational DBMS
6
10/24/2018
7
10/24/2018
Attribute and Attribute Types Three points of view for Attribute Types:
Simple versus Composite:
An Attribute is a particular property for an Entity • Simple Attribute: an Attribute that is not divisible into
Following figure shows two Entities and values of more basic components (Basic or Atomic Attribute) –
ID or Sex of a Person
their Attributes
• Composite Attribute: an Attribute that can be divided
into more basic components (Simple Attributes) – A
person’s Name or Address (Name = Fname, Mname
and Lname)
1-30
8
10/24/2018
The Database Approach to Data Management The Three Basic Operations of a Relational DBMS
9
10/24/2018
10
10/24/2018
The Database Approach to Data Management The Database Approach to Data Management
The Database Approach to Data Management The Database Approach to Data Management
An Entity-Relationship Diagram Entity-relationship diagram
• Used by database designers to document the data
model
• Illustrates relationships between entities
Distributing databases: Storing database in more than
This diagram shows the relationships between the
one place
entities ORDER, LINE_ITEM, PART, and SUPPLIER
that might be used to model the previous database • Reduced vulnerability, increased responsiveness
• May depart from standard definitions, pose security
problems
• Partitioned: Separate locations store different parts
of database
• Replicated: Central database duplicated in entirety
at different locations
11
10/24/2018
The Database Approach to Data Management The Entity Relationship Model of the Company Database
Distributed Databases
12
10/24/2018
Big data
• Massive sets of unstructured/semi-structured data from
Web traffic, social media, sensors, and so on
• Petabytes, exabytes of data
• Volumes too great for typical DBMS
• Can reveal more patterns and anomalies
Business intelligence infrastructure
– Today includes an array of tools for separate systems,
and big data
Contemporary tools:
– Data warehouses
– Data marts
– Hadoop
– In-memory computing
– Analytical platforms
Using Databases to Improve Business Performance and Decision Making COMPONENTS OF A DATA WAREHOUSE
A contemporary business intelligence infrastructure features capabilities and tools to
Data warehouse: manage and analyze large quantities and different types of data from multiple sources.
Easy-to-use query and reporting tools for casual business users and more sophisticated
– Stores current and historical data from many core analytical toolsets for power users are included.
operational transaction systems
– Consolidates and standardizes information for use across
enterprise, but data cannot be altered
– Provides analysis and reporting tools
Data marts:
– Subset of data warehouse
– Summarized or focused portion of data for use by specific
population of users
– Typically focuses on single subject or line of business
13
10/24/2018
Using Databases to Improve Business Performance and Decision Making Using Databases to Improve Business Performance and Decision Making
Components of a Data Warehouse
Hadoop
– Enables distributed parallel processing of big data
across inexpensive computers
– Key services
• Hadoop Distributed File System (HDFS): data storage
• MapReduce: breaks data into clusters for work
• Hbase: NoSQL database
– Used by Facebook, Yahoo, NextBio
The data warehouse extracts current and historical data from multiple
operational systems inside the organization. These data are combined with
data from external sources and reorganized into a central database
designed for management reporting and analysis. The information directory
provides users with information about the data available in the warehouse.
Using Databases to Improve Business Performance and Decision Making Using Databases to Improve Business Performance and Decision Making
14
10/24/2018
Using Databases to Improve Business Performance and Decision Making Using Databases to Improve Business Performance and Decision Making
Using Databases to Improve Business Performance and Decision Making Using Databases to Improve Business Performance and Decision Making
15
10/24/2018
Using Databases to Improve Business Performance and Decision Making Using Databases to Improve Business Performance and Decision Making
Using Databases to Improve Business Performance and Decision Making Using Databases to Improve Business Performance and Decision Making
16
10/24/2018
Using Databases to Improve Business Performance and Decision Making Using Databases to Improve Business Performance and Decision Making
17