DBMS 4
DBMS 4
Weak Entity
Attribute
Multivalued Attribute
Basic Terminology of ER Model
Composite Attribute
Derived Attribute
Relationship
Weak Relationship
Basic Terminology of ER Model
• Entity:
A entity is a “thing” or “object” in the real
world.
An entity contains attributes, which describe to
that entity. So anything about which we store
information is called an entity.
For example:
A Student, An employee, or bank a/c etc.
Basic Terminology of ER Model
Students
Roll No. Name DOB Course Address
Students
Types of Entity
• Weak Entity: A weak entity does not have any
primary key means the entity which does not any
sufficient attributes to form a primary key.
Payment
Basic Terminology of ER Model
• Attributes:
Attributes are the properties of an entity, which
describe characteristics of that entity.
Types of attributes:
I. Simple and Composite A.
II. Single value and Multivalued Attributes
III. Stored and Derived Attributes
Types of Attributes
I. Simple and Composite Attributes:
A simple attributes is just an attributes that can
not be divide into parts.
Example: name, age, salary etc.
s
t
c
t
i
s
t
t
r
e
e
t
e
d
o
c
z
i
s
s
e
d
d
A
r
n
a D
m O
e B
EMPLOYEE
Types of Attributes
II. Single value and Multivalued Attributes:
A single value attribute can have only a single value
Example:
• A person have only one “DOB” or “age”
• A student can have only one “roll-no”
A Multivalued attributes can have multiple value
Example: A person may have multiple phone numbers
Phone
DOB No.
PERSON
Types of Attributes
III. Stored and Derived Attributes
Stored attribute are those attributes, which are physically
stored into the database.
S_Address
S_Name
S_age
Student
Phone
S_ID No.
Relationship
Table_1 Table_2
Relation
Relationship
1 1
1 M
Table_1 Table_2
Student Course
M M
Marks
Joining_Date