
















Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
Prepare for your exams
Study with the several resources on Docsity
Earn points to download
Earn points by helping other students or get them with a premium plan
An introduction to ER Diagrams, a high-level diagramming method used to describe relations and databases. Learn about entities, attributes, relationships, primary keys, multivalued attributes, cardinality, weak entities, and various types of relationships. Use Chen diagrams to help design your data and choose keys. Examples and resources included.
Typology: Summaries
1 / 24
This page cannot be seen from the preview
Don't miss anything!

















CMSC 461 Michael Wilson
๏ Meant to be high level ๏ Pure concept, no implementation ๏ Can help you figure out how to design your relations, choose keys, etc.
๏ Keep this in mind when looking up info on the internet
Record ID PatientName Date of Visit Diagnosis
14233 Mario Mario 04/28/1991 Leg injury
174342 Snow Villiers 12/05/2012 Brain damage
189232 Lara Croft 12/05/2012 Powder burns
๏ A multivalued attribute is an attribute that consists of multiple other attributes or values ๏ For example patient name: ๏ First name ๏ Last name
๏ These relationships are high level as well ๏ They simply describe, at a conceptual level, how the two entities relate to one another ๏ Relationships are generally plaintext words or sentences ๏ Customer places orders ๏ Bands have members ๏ Programmers develop video games ๏ Relationships are not necessarily between two entities โ can be between more
๏ 1 to 1 ๏ 1 to many ๏ Many to 1 ๏ Many to many
๏ One patient can have many patient diagnoses ๏ We represent this by putting a โ1โ on the side of the relationship attached to Patient and an โNโ on the side of the relationship attached to patient records
๏ A weak entity is an entity that depends on another entity to exist ๏ In this case, a patientโs insurance info must be attached to a patient ๏ Therefore, it must reference a patient, and is a weak entity, represented by a double rectangle ๏ This relationship is described as an identifying relationship , represented by a double diamond ๏ Tuples cannot be uniquely identified by attributes alone ๏ Has to have a foreign key
๏ These are also valid
๏ These are probably closer to how they would be laid out in your DBMS