Sie sind auf Seite 1von 37

DATA

MODELS
2

Data Model Basic


Building Blocks
3
Data Model Basic Building
Blocks
1. Entity
2. Attribute
3. Relationship
4. Constraint
4

ENTITY

A person, place, thing, or event about


which data will be collected and stored.

An entity is “distinguishable”.

Ex. CUSTOMER
5

ATTRIBUTE

A characteristic of an entity.

Ex. CUSTOMER entity’s attributes


▸ customer last name, customer first
name, customer phone number,
customer address, and customer credit
limit.
6

RELATIONSHIP

Describes an association or relationship


among entities.

Ex. CUSTOMER and AGENT


7

RELATIONSHIP

Three Types of Relationships


1. One-to-Many (1:M) Relationship
2. Many-to-Many (M:N) Relationship
3. One-to-One(1:1) Relationship
8

One-to-Many (1:M) Relationship

PAINTER PAINTINGS

CUSTOMER INVOICES
9

Many-to-Many (M:N) Relationship

EMPLOYEE SKILLS

STUDENT CLASS
10

One-to-Many (1:1) Relationship

EMPLOYEE STORE

TEACHER ID
11

CONSTRAINT

A restriction placed on the data.

Ex. An employee’s salary must have


values that are between 6,000 and
350,000.
12

Business Rules
13

BUSINESS RULES

A brief, precise, and unambiguous description


of a policy, procedure, or principle within a
specific organization.
14

Evolution of Data
Models
15

Evolution of Data Models

▸ Hierarchical Model
▸ Network Models
▸ Relational Model
▸ Entity Relationship Model
▸ Object-Oriented Model
▸ Object/Relational and XML
▸ Big Data and NoSQL
16

HIERARCHICAL MODEL

▸ The model’s basic logical structure is


represented by an upside-down tree.
▸ The hierarchical structure contains
levels, or segments.
▸ Segments is the equivalent of a file
system’s record type
17

NETWORK MODEL

▸ the user perceives the network


database as a collection of records in
1:M relationships.
▸ the network model allows a record to
have more than one parent
18
NETWORK MODEL DATABASE
CONCEPTS

▸ Schema - the conceptual organization of the entire


database.
▸ Subschema - the portion of the database “seen” by
the application programs
▸ Data Manipulation Language (DML) - the
environment in which data can be managed
▸ Data Definition Language (DDL) - A schema that
enables the database administrator to define the
schema components.
19

RELATIONAL MODEL

▸ A relation (or table) is a two-dimensional


structure composed of intersecting rows
and columns.
▸ Each row in a relation is called a tuple.
▸ Each column represents an attribute.
20

RELATIONAL MODEL

▸ Implemented through Relational Database


Management System (RDBMS).
▸ RDBMS performs the same basic functions
provided by the hierarchical and network
DBMS systems
21

RELATIONAL MODEL
22

RELATIONAL MODEL
23

RELATIONAL MODEL

▸ Structured Query Language (SQL)


allows the user to specify what must be
done without specifying how.
24

RELATIONAL MODEL

SQL-Based Relational Database Parts:

1. End-User Interface - the interface allows the end


user to interact with the data.
2. Collection of tables stored in the database - the
interface allows the end user to interact with the
data.
3. SQL Engine - executes all queries, or data
requests.
25

ENTITY RELATIONSHIP MODEL

▸ A data model that describes


relationships (1:1, 1:M, and M:N)
among entities at the conceptual level
with the help of Entity Relationship
(ER) diagrams.
26

ENTITY RELATIONSHIP MODEL

ER Model Components
1. Entity
▹ Entity Instance or Entity Occurrence – each
row in the relational table
▹ Each entity consists of a set of attributes
2. Relationships
▹ 1:M
▹ M:N
▹ 1:1
27

ENTITY RELATIONSHIP MODEL


ER Model Notations
28

OBJECT-ORIENTED MODEL

▸ A data model whose basic modeling


structure is an object.
▸ Object is an representation of a real-
world entity that has a unique identity
▸ Implemented through Object-Oriented
Database Management System
(OODBMS)
29

OBJECT-ORIENTED MODEL

OO Model Components
1. Objects
2. Attributes
3. Classes
4. Methods
5. Class Hierarchy
6. Inheritance
7. Unified Modeling Language (UML)
30
31

OBJECT/RELATIONAL AND XML

Extended Relational Data Model (ERDM)


includes the object-oriented model’s best
features in an inherently simpler relational
database structural environment
32

OBJECT/RELATIONAL AND XML

Object/ Relational Database Management


System (O/R DBMS)
▸ A DBMS based on the extended relational
model (ERDM)
Extensible Markup Language (XML)
▸ the standard for the efficient and effective
exchange of structured, semi structured, and
unstructured data.
33

BIG DATA AND NOSQL

Big Data refers to a movement to find new and


better ways to manage large amounts of web
and sensor-generated data and derive business
insight from it, while simultaneously providing
high performance and scalability at a reasonable
cost.
34

BIG DATA AND NOSQL

Characteristics of Big Data (3 Vs)


1. Volume - the amounts of data being stored
2. Velocity - the speed with which data grows and
the need to process this data quickly in order to
generate information and insight
3. Variety - the fact that the data being collected
comes in multiple different data formats
35

BIG DATA AND NOSQL

NoSQL - a large-scale distributed database


system that stores structured and unstructured
data in efficient ways.
36

Evolution of Data Models


37

THANKS!
Any questions?
You can find me at @username & user@mail.me

Das könnte Ihnen auch gefallen