You are on page 1of 5

DATABASE MANAGEMENT SYSTEM.

Experiment No :1

STUDY OF ENTITY RELATIONSHIP MODEL.

Date:

STUDY OF ENTITY RELATIONSHIP MODEL


AIM: TO STUDY THE ENTITY RELATIONSHIP MODEL. THEORY: ENITITY RELATIONSHIP MODE: E-R model maps the meaning and interaction of real world entities or enterprises onto the conceptual schema. It contains 3 basic locations: 1. Entity. 2. Relationship. 3. Attribute. 1.Entity : An entity is any real world object or thing that is distinguishable from other object. Eg: 1. A student of an university is an entity. 2. Customer of a bank. Symbol : Notation:
STUDENT

2.Entity Set: A collection of similar entities is termed as an entity set. Eg: Collection of all students studying in an university is known as an entity set. 3.Relationship: A relationship is an association among two or more entities. Eg: consider enrol_for ,student and course.

STUDENT

Enroll s_for

COURSE

4.Attributes: Attributes are the various descriptive properties possessed by an entity, thus , an Entity is described using set of attributes. Symbol: Eg: ROLL NO 01 NAME ABC CITY MUMBAI BRANCH COMPUTERS

A set of attributes (name,roll,city,branch) may be used to describe every student entity. 5.Simple and composite attribute: Attributes that cannot be subdivided are termed as simple attributes. Those which can be divided into meaningful parts are termed as composite attributes. NAME

FIRST NAME

MIDDLE NAME

LAST NAME

I. SINGLE VALUE ATTRIBUTE: The attributes that at any given time have only a single value for any entity in entity set are termed as single value attribute. Eg: pin code, date of birth etc. II. MULTIVALUE ATTRIBUTE: The attribute that has a set of values for an entity is termed as muti value attribute. Eg: phone no, email id etc. III. DERIVED ATTRIBUTE: If value of an attribute can be obtained from some other attribute then it is termed as derived attributes. Eg:
DOB AGE

IV. DESCRIPTIVE ATTRIBUTE: It is used to store information about relationship and not about any of participating entity. Eg: Student and courses are two entities and enrols_for is relationship among two entities which records fee as descriptive attribute to keep track of balance fees that a student has to pay for particular course. Track of balance fees that a student has to pay for particular course. This is useful if he/she pays the course fee in instalment.

BAL FEE

ID FEES

ROLL

STUDENT

Enr ol_

COURSE

NAME

CITY

CONCLUSION: Thus ,the E-R model is studied.

You might also like