SlideShare a Scribd company logo
+
Dr. Ramadan Babers
Faculty of Science - Helwan University
Fall-2018
D B
+
Introduction
2
Unit01 Outlines
3
Unit01 Outlines
4
Unit01 Outlines
5
Unit01 Outlines
6
Unit01 Outlines
7
Unit01 Outlines
8
Unit01 Outlines
9
+ Database Systems
Basic Concepts
10
Unit01 Outlines
 Types of Databases and Database Applications
 Basic Definitions
 Typical DBMS Functionality
 Examples of a Database
 Main Characteristics of the Database Approach
 Database Users
 Advantages of Using the Database Approach
11
Introduction
12
Introduction
13
Examples of Database Applications
• Purchases from the supermarket
• Purchases using your credit card
• Booking a holiday at the travel agents
• Using the local library
• Taking out insurance
• Studying at university
14
File-Based Systems
 Collection of application programs that perform
services for the end users (e.g. reports).
 Each program defines and manages its own data.
15
File-Based Processing
16
Database Systems
17
Definitions
18
 Data: known facts that can be recorded
 Database: a collection of data
 represents some aspect of the real world
 logically coherent collection (not a random collection)
 designed, built & populated for a specific purpose
 Database Management System: the software
that manages the data
Database Management System (DBMS)
19
Advantages of DBMSs
20
 Control of data redundancy
 Data consistency
 More information from the same amount of data
 Sharing of data
 Improved data integrity
 Improved security
 Enforcement of standards
Advantages of DBMSs
21
 Improved data accessibility and responsiveness
 Increased productivity
 Improved maintenance through data
independence
 Increased concurrency
 Improved backup and recovery services
Disadvantages of DBMSs
22
 Complexity
 Size
 Cost of DBMS
 Additional hardware costs
 Cost of conversion
 Higher impact of a failure
Database Activity Conceptual Data Modeling
23
Project Identification
and Selection
Project Initiation
and Planning
Analysis
Physical Design
Implementation
Maintenance
Logical Design
+
DBMS Architecture
24
Architecture
25
 DBMS can be seen as either single tier or multi-tier.
Database (Data) Tier: At this tier,
the database resides along with its query
processing languages. Relations, data and
their constraints exist at this level.
Application (Middle) Tier: sits in
the middle and acts as a mediator
between the end-user and the database.
User (Presentation) Tier: multiple
views of the database can be provided by
the application.All views are generated by
applications that reside in the application
tier.
Data Models
26
 Data models
 Define how the logical structure of a database is modeled.
 Are fundamental entities to introduce abstraction in a
DBMS.
 Define how data is connected to each other
(Relationships) and how they are processed and stored
inside the system.
The first data model could be flat data-models, where all the
data used are to be kept in the same plane and contain lots of
duplication and update anomalies.
Entity-Relationship Model (ER Model)
27
 ER Model contains:
1) Entity set,
2) Relationship set,
3) General attributes, and
4) Constraints.
Entity
Attributes
Entity-Relationship Model (ER Model)
28
1) Entity
 An entity can be a real-world object. For
example, in a school database, students,
teachers, classes, and courses offered can
be considered as entities.
 All these entities have some attributes or
properties that give them their identity.
 An entity set is a collection of similar
types of entities.
Entity-Relationship Model (ER Model)
29
2) Attribute
 Entities are represented by means of their
properties called attributes. All attributes have
values. For example, a student entity may have
name, class, and age as attributes.
Entity-Relationship Model (ER Model)
30
 There exists a domain or range of values that can
be assigned to attributes. For example, a student's
name cannot be a numeric value. It has to be
alphabetic. A student's age cannot be negative, etc.
Entity-Relationship Model (ER Model)
31
Types of Attributes
Simple attributes:
are atomic values. For example, a
student's phone number is an
atomic value of 10 digits.
Composite attribute:
are made of more than one
simple attribute. For example, a
student's complete name may
have first_name and last_name.
Entity-Relationship Model (ER Model)
32
Types of Attributes
Multivalued: attributes
are depicted by double ellipse.
Derived attribute:
are the attributes that do not
exist in the physical database,
but their values are derived
from other attributes present
in the database. For example,
average_salary and age.
Entity-Relationship Model (ER Model)
33
Entity-Set and Keys
Key is an attribute or collection of attributes that uniquely
identifies an entity among entity set.
For example, the ID_number of a student makes him/her
identifiable among students.
Keys Types
 Super Key: A set of attributes (one or more) that collectively
identifies an entity in an entity set.
 Candidate Key: A minimal super key is called a candidate key.
An entity set may have more than one candidate key.
 Primary Key: A primary key is one of the candidate keys
chosen by the database designer to uniquely identify the entity set.
Entity-Relationship Model (ER Model)
34
3) Relationship
 The relationship is the association among entities.
For example, an employee works_at a
department, a student enrolls in a course. Here,
Works_at and Enrolls are called relationships.
Employee Departmrnt
Student Course
Works at
enrolls
Entity-Relationship Model (ER Model)
35
Degree of Relationship
The number of participating entities in a relationship
defines the degree of the relationship.
Entity-Relationship Model (ER Model)
36
Degree of Relationship
One-to-one: One entity from entity set A can be
associated with at most one entity of entity set B and
vice versa.
Entity-Relationship Model (ER Model)
37
Degree of Relationship
One-to-many: One entity from entity set A can be
associated with more than one entities of entity set
B, however an entity from entity set B can be
associated with at most one entity.
Entity-Relationship Model (ER Model)
38
Degree of Relationship
Many-to-many: One entity from A can be associated
with more than one entity from B and vice versa.

More Related Content

PPTX
DBMS OF DATA MODEL Deepika 2
PPTX
All data models in dbms
PPT
OODM-object oriented data model
PPT
Week 3 Classification of Database Management Systems & Data Modeling
PPTX
Introduction of Database Design and Development
PPTX
Introduction to ER Diagrams
PPTX
Design approach
PPT
Database Management & Models
DBMS OF DATA MODEL Deepika 2
All data models in dbms
OODM-object oriented data model
Week 3 Classification of Database Management Systems & Data Modeling
Introduction of Database Design and Development
Introduction to ER Diagrams
Design approach
Database Management & Models

What's hot (20)

PPTX
Database model
PPT
data modeling and models
PDF
Db lec 02_new
PDF
Dbms Notes Lecture 4 : Data Models in DBMS
PPTX
Data Modeling Basics
PPT
Database model BY ME
PPTX
Four Types of Data Models
PPTX
Data Models In Database Management System
PPSX
DISE - Database Concepts
PDF
Schema Integration, View Integration and Database Integration, ER Model & Dia...
PPS
Data models
PDF
All_Data_DBMS_MODELS 130725130028-phpapp01
PDF
Summary data modelling
DOCX
The three level of data modeling
PDF
Data models
PPT
Different data models
PPT
RDBMS_Unit 01
PPTX
Object oriented database model
PPTX
Data models
Database model
data modeling and models
Db lec 02_new
Dbms Notes Lecture 4 : Data Models in DBMS
Data Modeling Basics
Database model BY ME
Four Types of Data Models
Data Models In Database Management System
DISE - Database Concepts
Schema Integration, View Integration and Database Integration, ER Model & Dia...
Data models
All_Data_DBMS_MODELS 130725130028-phpapp01
Summary data modelling
The three level of data modeling
Data models
Different data models
RDBMS_Unit 01
Object oriented database model
Data models
Ad

Similar to Db lec 01 (20)

PDF
Cs501 intro
PPTX
Unit-1-DBMS-SUN-4 everything you need to know.pptx
PDF
Database Concepts & SQL(1).pdf
PPTX
DBMS Part 1.pptx
PPTX
What is Data Dictionary in Database System
PPTX
What is Data Dictionary in database system
DOCX
Database Concepts
PDF
Bca examination 2015 dbms
PPTX
DBMS-2.pptx
PPTX
Data base management system(DBMS), sourav mathur
PPTX
Database Management System, Lecture-1
PDF
Chapter – 2 Data Models.pdf
PPTX
DBMS_Unit_1.pptx
DOC
Dbms questions
PPTX
uml.pptx
PDF
03 CHAPTER TWO - CONCEPTUAL DATABASE DESIGN.pdf
PPTX
03 CHAPTER TWO - CONCEPTUAL DATABASE DESIGN.pptx
PDF
Database management systems
DOCX
Data models
DOCX
Data models
Cs501 intro
Unit-1-DBMS-SUN-4 everything you need to know.pptx
Database Concepts & SQL(1).pdf
DBMS Part 1.pptx
What is Data Dictionary in Database System
What is Data Dictionary in database system
Database Concepts
Bca examination 2015 dbms
DBMS-2.pptx
Data base management system(DBMS), sourav mathur
Database Management System, Lecture-1
Chapter – 2 Data Models.pdf
DBMS_Unit_1.pptx
Dbms questions
uml.pptx
03 CHAPTER TWO - CONCEPTUAL DATABASE DESIGN.pdf
03 CHAPTER TWO - CONCEPTUAL DATABASE DESIGN.pptx
Database management systems
Data models
Data models
Ad

More from Ramadan Babers, PhD (20)

PDF
Part10 finance investment limitations of ratio analysis
PDF
Part09 finance investment ratio analysis investment ratio
PDF
Part08 finance investment ratio analysis solvency ratio
PDF
Part07 finance investment ratio analysis profitability ratio
PDF
Part06 finance investment ratio analysis efficiency ratio
PDF
Part05 finance investment_ratio_analysis_liquidity_ratio_presentation
PDF
Part04 finance investment_ratio_analysis_introduction_presentation
PDF
Part03 finance investment_financial_statement_analysis_presentation
PDF
Part02 finance investment_finance_and_financial_reporting_presentation
PDF
Part01 finance investment_basics_presentation
PDF
Strategic Management part_03_03
PDF
Strategic Management part_02_03
PDF
Strategic Management part_01_03
PDF
Customer Experience (CX) updated version V9.0
PDF
Classification using decision tree in detail
PDF
Customer Experience (CX)
PPTX
Python lec 1004_ch02_excercies
PDF
Python lec 1003_for_biologists
PDF
Python lec 1002_for_biologists
PDF
Python lec 1001_for_biologists
Part10 finance investment limitations of ratio analysis
Part09 finance investment ratio analysis investment ratio
Part08 finance investment ratio analysis solvency ratio
Part07 finance investment ratio analysis profitability ratio
Part06 finance investment ratio analysis efficiency ratio
Part05 finance investment_ratio_analysis_liquidity_ratio_presentation
Part04 finance investment_ratio_analysis_introduction_presentation
Part03 finance investment_financial_statement_analysis_presentation
Part02 finance investment_finance_and_financial_reporting_presentation
Part01 finance investment_basics_presentation
Strategic Management part_03_03
Strategic Management part_02_03
Strategic Management part_01_03
Customer Experience (CX) updated version V9.0
Classification using decision tree in detail
Customer Experience (CX)
Python lec 1004_ch02_excercies
Python lec 1003_for_biologists
Python lec 1002_for_biologists
Python lec 1001_for_biologists

Recently uploaded (20)

PPTX
Lesson notes of climatology university.
PDF
grade 11-chemistry_fetena_net_5883.pdf teacher guide for all student
PDF
Complications of Minimal Access Surgery at WLH
PPTX
GDM (1) (1).pptx small presentation for students
PDF
O7-L3 Supply Chain Operations - ICLT Program
PDF
Insiders guide to clinical Medicine.pdf
PPTX
Renaissance Architecture: A Journey from Faith to Humanism
PDF
Sports Quiz easy sports quiz sports quiz
PDF
Saundersa Comprehensive Review for the NCLEX-RN Examination.pdf
PDF
STATICS OF THE RIGID BODIES Hibbelers.pdf
PDF
Abdominal Access Techniques with Prof. Dr. R K Mishra
PDF
BÀI TẬP BỔ TRỢ 4 KỸ NĂNG TIẾNG ANH 9 GLOBAL SUCCESS - CẢ NĂM - BÁM SÁT FORM Đ...
PPTX
Introduction_to_Human_Anatomy_and_Physiology_for_B.Pharm.pptx
PPTX
1st Inaugural Professorial Lecture held on 19th February 2020 (Governance and...
PDF
Classroom Observation Tools for Teachers
PDF
VCE English Exam - Section C Student Revision Booklet
PPTX
Cell Structure & Organelles in detailed.
PDF
Black Hat USA 2025 - Micro ICS Summit - ICS/OT Threat Landscape
PPTX
PPH.pptx obstetrics and gynecology in nursing
PDF
Computing-Curriculum for Schools in Ghana
Lesson notes of climatology university.
grade 11-chemistry_fetena_net_5883.pdf teacher guide for all student
Complications of Minimal Access Surgery at WLH
GDM (1) (1).pptx small presentation for students
O7-L3 Supply Chain Operations - ICLT Program
Insiders guide to clinical Medicine.pdf
Renaissance Architecture: A Journey from Faith to Humanism
Sports Quiz easy sports quiz sports quiz
Saundersa Comprehensive Review for the NCLEX-RN Examination.pdf
STATICS OF THE RIGID BODIES Hibbelers.pdf
Abdominal Access Techniques with Prof. Dr. R K Mishra
BÀI TẬP BỔ TRỢ 4 KỸ NĂNG TIẾNG ANH 9 GLOBAL SUCCESS - CẢ NĂM - BÁM SÁT FORM Đ...
Introduction_to_Human_Anatomy_and_Physiology_for_B.Pharm.pptx
1st Inaugural Professorial Lecture held on 19th February 2020 (Governance and...
Classroom Observation Tools for Teachers
VCE English Exam - Section C Student Revision Booklet
Cell Structure & Organelles in detailed.
Black Hat USA 2025 - Micro ICS Summit - ICS/OT Threat Landscape
PPH.pptx obstetrics and gynecology in nursing
Computing-Curriculum for Schools in Ghana

Db lec 01

  • 1. + Dr. Ramadan Babers Faculty of Science - Helwan University Fall-2018 D B
  • 11. Unit01 Outlines  Types of Databases and Database Applications  Basic Definitions  Typical DBMS Functionality  Examples of a Database  Main Characteristics of the Database Approach  Database Users  Advantages of Using the Database Approach 11
  • 14. Examples of Database Applications • Purchases from the supermarket • Purchases using your credit card • Booking a holiday at the travel agents • Using the local library • Taking out insurance • Studying at university 14
  • 15. File-Based Systems  Collection of application programs that perform services for the end users (e.g. reports).  Each program defines and manages its own data. 15
  • 18. Definitions 18  Data: known facts that can be recorded  Database: a collection of data  represents some aspect of the real world  logically coherent collection (not a random collection)  designed, built & populated for a specific purpose  Database Management System: the software that manages the data
  • 20. Advantages of DBMSs 20  Control of data redundancy  Data consistency  More information from the same amount of data  Sharing of data  Improved data integrity  Improved security  Enforcement of standards
  • 21. Advantages of DBMSs 21  Improved data accessibility and responsiveness  Increased productivity  Improved maintenance through data independence  Increased concurrency  Improved backup and recovery services
  • 22. Disadvantages of DBMSs 22  Complexity  Size  Cost of DBMS  Additional hardware costs  Cost of conversion  Higher impact of a failure
  • 23. Database Activity Conceptual Data Modeling 23 Project Identification and Selection Project Initiation and Planning Analysis Physical Design Implementation Maintenance Logical Design
  • 25. Architecture 25  DBMS can be seen as either single tier or multi-tier. Database (Data) Tier: At this tier, the database resides along with its query processing languages. Relations, data and their constraints exist at this level. Application (Middle) Tier: sits in the middle and acts as a mediator between the end-user and the database. User (Presentation) Tier: multiple views of the database can be provided by the application.All views are generated by applications that reside in the application tier.
  • 26. Data Models 26  Data models  Define how the logical structure of a database is modeled.  Are fundamental entities to introduce abstraction in a DBMS.  Define how data is connected to each other (Relationships) and how they are processed and stored inside the system. The first data model could be flat data-models, where all the data used are to be kept in the same plane and contain lots of duplication and update anomalies.
  • 27. Entity-Relationship Model (ER Model) 27  ER Model contains: 1) Entity set, 2) Relationship set, 3) General attributes, and 4) Constraints. Entity Attributes
  • 28. Entity-Relationship Model (ER Model) 28 1) Entity  An entity can be a real-world object. For example, in a school database, students, teachers, classes, and courses offered can be considered as entities.  All these entities have some attributes or properties that give them their identity.  An entity set is a collection of similar types of entities.
  • 29. Entity-Relationship Model (ER Model) 29 2) Attribute  Entities are represented by means of their properties called attributes. All attributes have values. For example, a student entity may have name, class, and age as attributes.
  • 30. Entity-Relationship Model (ER Model) 30  There exists a domain or range of values that can be assigned to attributes. For example, a student's name cannot be a numeric value. It has to be alphabetic. A student's age cannot be negative, etc.
  • 31. Entity-Relationship Model (ER Model) 31 Types of Attributes Simple attributes: are atomic values. For example, a student's phone number is an atomic value of 10 digits. Composite attribute: are made of more than one simple attribute. For example, a student's complete name may have first_name and last_name.
  • 32. Entity-Relationship Model (ER Model) 32 Types of Attributes Multivalued: attributes are depicted by double ellipse. Derived attribute: are the attributes that do not exist in the physical database, but their values are derived from other attributes present in the database. For example, average_salary and age.
  • 33. Entity-Relationship Model (ER Model) 33 Entity-Set and Keys Key is an attribute or collection of attributes that uniquely identifies an entity among entity set. For example, the ID_number of a student makes him/her identifiable among students. Keys Types  Super Key: A set of attributes (one or more) that collectively identifies an entity in an entity set.  Candidate Key: A minimal super key is called a candidate key. An entity set may have more than one candidate key.  Primary Key: A primary key is one of the candidate keys chosen by the database designer to uniquely identify the entity set.
  • 34. Entity-Relationship Model (ER Model) 34 3) Relationship  The relationship is the association among entities. For example, an employee works_at a department, a student enrolls in a course. Here, Works_at and Enrolls are called relationships. Employee Departmrnt Student Course Works at enrolls
  • 35. Entity-Relationship Model (ER Model) 35 Degree of Relationship The number of participating entities in a relationship defines the degree of the relationship.
  • 36. Entity-Relationship Model (ER Model) 36 Degree of Relationship One-to-one: One entity from entity set A can be associated with at most one entity of entity set B and vice versa.
  • 37. Entity-Relationship Model (ER Model) 37 Degree of Relationship One-to-many: One entity from entity set A can be associated with more than one entities of entity set B, however an entity from entity set B can be associated with at most one entity.
  • 38. Entity-Relationship Model (ER Model) 38 Degree of Relationship Many-to-many: One entity from A can be associated with more than one entity from B and vice versa.