Zybook Week 2 Flashcards
What is the entity-relationship model?
high level representation of data requirements, ignoring implementation details.
Three kinds of objects:
entity – person, place, product, concept or activity
relationship – a statement about two entities
attribute – a descriptive property of an entity
What is an ER diagram?
A schematic picture of entities, relationships, and attributes.
Entities are rectangles, relationships are drawn as lines
attributes (not always present) appear as additional text within an entity rectangle.
They are read in the direction of the relationship or verb.
What is a glossary?
Also known as a data dictionary or repository, this documents additional detail in text format. Includes names, syn, descriptions of entities, relationships and attributes.
What is an entity type?
A set of things.
What is a relationship type?
A statement about entity types.
What is an attribute type.
A set of values.
What is an entity instance?
An individual thing. Usually becomes a row.
What is a relationship instance?
A statement about entity instances. Usually becomes foreign key values.
What is an attribute instance?
An individual value. Usually becoems a column value.
What are the three phases of database design?
Analysis - develops an entity-relationship model, capturing data requirements while ignoring implementation details.
Logical design – coverts entity-relationship model into tables, columns and keys for a database system
Physical Design – adds indexes and specifies how tables are organized on storage media
What makes up a table?
Table - collection of data organized as columns and rows.
A column is a set of values of the same type. Each column has a different name.
A row is a set ofvalues, one for each column.
A cell is a single column of a single row.
What is an empty table?
A table without rows.
What is a data type?
Each column has a data type, which defines the format of the values.
What are different data types?
Integer, decimal, character, time, binary, spatial, document
What structural rules must tables obey?
Normalized - exactly one value exists in each cell
No duplicate column names
No duplicate rows (no two rows may have identical values in all columns)