• Tidak ada hasil yang ditemukan

Database Development Lecture 4

N/A
N/A
Protected

Academic year: 2017

Membagikan "Database Development Lecture 4"

Copied!
14
0
0

Teks penuh

(1)

DATABASE

DEVELOPMENT

(2)

The Entity Relationship Diagram

The E-R model is a detailed, logical

representation of the data.

It must be flexible enough so that it

can be used and understood in

practically any environment where

information is modelled

(3)

ER- Model Constructs

Entity - person, place, object, event,

concept.

Entity Type - is a collection of entities

that share common properties or

characteristics. Each entity type is given

a name. It is always singular.

Entity instance – is a single occurrence

(4)

Types Of Entities

Database Development University Of South Asia 4

Entity

Weak Entity

existence depends on

some other entity type

Strong Entity

one that exists independently

from other entity types

(5)

Attribute

An attribute is a property or characteristic

of an entity type.

In ER diagrams place attributes name in an

ellipse with a line connecting it to its

associated entity.

An attribute is associated with exactly one

(6)

Types Of Attributes

Simple Attributes

Composite Attributes

Multi Valued Attributes

Derived Attributes

(7)
(8)
(9)

Relationship

A relationship is an association among the

instances of one or more entity types.

Unary Relationship:

Is between the instances of a single

entity type.

Binary Relationship:

Between the instances of two entity

types, and is the most common type of relationship encountered in

data modelling.

Ternary Relationship:

A ternary relationship is a

(10)
(11)
(12)

Degree Of Relationship

The number of entity types that

participate in it.

(13)

Cardinality Of A Relationship

The number of instances of one entity that

can or must be associated with each instance

of another entity.

Minimum Cardinality:

The minimum cardinality of a

relationship is the minimum number of instances of an entity B

that may be associated with each instance of an entity A

Maximum Cardinality:

The maximum number of

(14)

Example ERD

Referensi

Dokumen terkait

Total Number of Instances := Current Instance Number Goto First Property OF Action Data :=

Foreign key – a primary key of an entity that is used in another entity to identify instances of a relationship.. – A foreign key is a primary key of one entity

For instance, we want the title of each book to be included in the database, so we include a Title attribute for the Books entity class!. • Attributes are used to help

It’s also a good idea to check if any low cardinality indexes are being used, because this type of an index will make the database read a large number of data blocks into the

EER Data Modeling Object Oriented EER Class Entity type Object Entity instance Association Relationship Inheritance of attributes Inheritance of attributes Inheritance of behavior

Relational Model Concepts Degree: The total number of attributes which in the relation is called the degree of the relation.. Cardinality: Total number of rows present in the

E-R MODEL ER MODEL Entity Attribute Key Composite Multivalued Derived Relationship One to Many Many to One Many to Many Weak Entity • A basic ER model is composed of entity types

The following data were collected for each individual: height of attachment minimum and maximum in creeping species, leaf/frond number, leaf length, stem length and/or number of shoots