Professional Documents
Culture Documents
Database Model
Database Model
Database Model
Database Model
1
2
1
• Data model
–Relatively simple representation, usually graphical,
of complex real-world data structures
3
1
Importance of Data Modeling
4
1
Data Model Basic Building Blocks
5
1
Database Models
• Collection of logical constructs used to represent
data structure and relationships within the
database
6
1
Implementation Database Models
7
1
Hierarchical Database Model
• Logically represented by an upside down tree
– Each parent can have many children
– Each child has only one parent
8
1
Figure 1.8
9
1
11
1
13
1
Figure
1.10
14
1
16
1
• Conceptually simple.
17
1
18
1
The Relational Model—
Basic Structure (continued)
• Table (relations)
–Matrix consisting of a series of row/column
intersections.
–Related to each other by sharing a common entity
characteristic.
• Relational schema
–Visual representation of relational database’s entities,
attributes within those entities, and relationships
between those entities.
19
1
Relational Table
20
1
A Relational Schema
21
1
Linking Relational Tables
22
1
23
1
24
1
RDMS
25
1
Figure 1.13
26
1
27
1
Componenet of ER Model
• Entity :
– anything about which data are to be collected and
stored.
– An entitiy is represented in ERD by a rectangle, also
known as entity box.
– Each entity is described by a set of attributes that
describes particular characterstics of the entity.
• Relationships:
– three types of relationship (1:M , M:M , 1:1)
28
1
29
1
Relationships:
The Basic Crow’s Foot ERD
30
1