You are on page 1of 1

AnEntity–

relationshipmodel(ERmodel)describesthestructureofadatabasewiththehelpofadiagram,whichisknow
nasEntityRelationshipDiagram(ERDiagram).AnERmodelisadesignofadatabasethatcanlaterbeimple
mentedasadatabase.ThemaincomponentsofE Rmodelare:entitysetandrelationshipset.

ComponentsofaERDiagram

Therearethreecomponentsofmis

1.Entity:Anentityisanobjectorcomponentofdata.AnentityisrepresentedasrectangleinanERdiagram.

2.Attribute:Anattributedescribesthepropertyofanentity.AnattributeisrepresentedasOvalinanERdiagra
m.Therearefourtypesofattributes:Keyattribute,Compositeattribute,Multivaluedattribute,Derivedattribu
te

3.Relatiomship:ArelationshipisrepresentedbydiamondshapeinERdiagram,itshowstherelationshipamongentities.Ther
earefourtypesofrelationships:

1.OnetoOne

2.OnetoMany

3.ManytoOne

4.Manytomany

ExampleofERdiagram:

Lastname

Firstname
NameAddress

Student

Rollnumber
Phonenumber Course

You might also like