Professional Documents
Culture Documents
An Entity-relat-WPS Office
An Entity-relat-WPS Office
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