Professional Documents
Culture Documents
Experiment No :1
Date:
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