Session 12 (E/R Diagrams) Flashcards
what kinds of questions do ER diagrams answer?
What is data?
How are the data related to each other?
How can we query the data and change it?
How do we ensure that the data represents a
correct view of the real world (data integrity)?
what is an entity (entity classes?)
Person, place, object, event or concept about
which data is maintained
Named property of an entity is an ___
attribute (info or field)
what are relationships?
Ties between different entities
give an ERD example
Entities (Entity Classes) e.g., Student, Course, Patient, Doctor Attribute (Information or field) e.g., Student ID, Course Name, Credits, Medical School Relationships e.g., Student takes a class
what is a primary key
Attribute(s) that can uniquely identify a given entity
(or relationship) instance.
what is a foreign key
Attribute(s) that can uniquely identify a given entity
(or relationship) instance in another entity
what is a composite attribute
An attribute that has meaningful component parts
attributes
what is a multivalued attribute
An attribute that may take on more than one value for a given entity (or relationship) instance.
how is entity integrity maintained in a primary key?
Unique identifier of record
Can’t be duplicate
Can’t be null
what is a candidate key?
Attribute (or combination of attributes) that
uniquely identifies each instance of an entity type
what is an identifier (primary key?)
A candidate key that has been selected as the
unique identifying characteristic for an entity type
describe cardinalities
express the number of entities to which another entity may be associated via a relationship
Maximum cardinality
Minimum cardinality
what is a relationship
describes a physical or conceptual connection between entities. It is always bi-directional
what are the three types of binary relationships?
- one to one
- one to many
- many to many