You are on page 1of 10

Information model of

the subject area


Strong type of entity Weak type of entity

Representation of strong and weak (dependent) type of entity


on ER-diagrams

Attribute is the Multivalued


primary key attribute
Simple
attribute Composite
attribute

Derived
attribute
Attribute 1 Attribute 2

Representation of attributes on ER-diagrams


Student
ID student Date of birth

Year of entry Student's age

Phone
number Student’s
name
Surname
Country
Address
City Name

Street

Fragment of ER-diagram for the entity


one attribute of an entity
corresponds to only ONE
attribute of another entity
1 1

one attribute of an entity


corresponds to several
attributes of another
entity
1 M

several attributes of one


entity correspond to
several attributes of
another entity
N M
The slide shows a fragment of the ER-model that represents a
“one-to-many” (1:M) relationship for the Student and Group
entities

ID_Student ID_Group

M 1 Group
Student Study
M Stud N
Student Subject
y

Introducing an artificial entity to replace “many-to-many”


relationships to “one-to-many” relationships

ID_Student ID_Subject

Student Subject

1 1

is M M is being
Student_Subject
studying studied
A fragment of the information model of the subject area at the
first level

Subject study Student belong Group

A fragment of the information model of the subject area at the


second level

1
Statement N receive N Student N belong Group
N

are
fixed
1
Subject
A fragment of the information model of the subject area
at the third level
Table 1- Database entities
The name of the Attributes Attribute type
entity
Student Student_ID Integer
Fname Char
Sname Char
Birthday Date
Sex Char
Photo LongRaw
Croup_ID Integer

Group Croup_ID Integer


Gname Char
Amount Integer
Statement Statement_ID Integer
Group_ID Integer
Subject_ID Integer
Lecturer Char
TypeExam Char
GBall Integer

Subject Subject_ID Integer


Subname Char
Hour Time, Date
Hlecture Time, Date
Hpractic Time, Date
Table 2- Types of database relationships

The name of the Relationship The name of the Relationship


entity entity power
Student belongs to Group N:1
Group receive Statement 1:N
Statement are fixed Subject N:1

You might also like