Chapter 2 - Slides Flashcards
The ____ is very popular because of its
simplicity and mathematical foundation
Relational Model
True or False? Relational model shows data to the user in a very simple, logical view as a two-dimensional table.
True
What is the strongest characteristic of the Relational Model?
the ability to establish relationships among tables, which helps to reduce redundancy
What was the first commercial implementation of the Relational Model?
SQL/DS on MVS OS by IBM and the Oracle DBMS in 1980s
What is a model?
a simplified version of real-life
complex objects.
What is a data model?
a simplified graphical
representation of a database structure and is a
tool to represent the various entity types and
relationships among the entity types.
What does the Entity-Relationship (ER) model provide?
- An excellent communication tool.
2. A simple graphical representation of data.
The E-R model uses _____ for
graphical representation of the database components
E-R diagrams (ERD)
What is an Entity?
it is represented by a
rectangle. The name of the entity (set) is written within
the rectangle. Some tools prefer to use uppercase
letters only for entities.
The name of an entity set is a _____
single noun
EMPLOYEE, CUSTOMER, and DEPARTMENT are examples of what?
Singular entity set names
A ___ represents relationship between the two
entities
line
The name of the relationship is an ____ in lowercase letters.
active verb
works, manages, and employs are examples of what?
relationships
How is 1:1 represented on the ER Model?
With 2 vertical lines on each side. (-||——||–) ie. manages
How is 1:M represented on the ER Model?
With 1 set of vertical lines on one side and angled lines on the right hand side.
(-||–||-)
How is M:N represented on the ER Model?
With 2 angled lines on each side.
(->—
The types of relationships (1:1, 1:M, and M:N) between entities are called:
connectivity or
multiplicity
How would you illustrate the following:
An EMPLOYEE supervises a DEPARTMENT, and a
DEPARTMENT has one EMPLOYEE supervisor
How would you illustrate the following:
A DIVISION contains many FACULTY members, but
a FACULTY works for one DIVISION.
D -||–(employs)–
How would you illustrate the following:
An INVOICE contains many ITEMS and an ITEM
can be in more than one INVOICE.
INV ->–(contains)–
The relationship between two entities can be given
using the lower and upper limits. This information is
called the ____.
cardinality
The ____ is written next to each entity in the
form (n, m)
cardinality
a (1, 1) next to
EMPLOYEE means that an employee can supervise a
___ of one and ___ of one department.
minimum; maximum
The value (1, N) next to an entity means
a minimum of one and a
maximum equal to any number
True or False? Some modern tools do not show cardinality in an E-R diagram.
True
True or False? In reality, corporations do not set rules for the minimum and maximum values for cardinality.
False, they do.
A corporation may decide that a department must
have a minimum of 10 employees and a maximum of
25 employees, which results in cardinality of:
(10,25)
An employee can be part of zero or more than one
department, and an item may not be in any invoice!
These types of decisions are known as ___.
business rules
In real life, it is possible to have an entity that is not
related to another entity at all times. The relationship
is known as:
an optional relationship.
What is the symbol of an optional relationship?
Angled lines with a circle
->o–o
The decomposition from M:N to 1:M involves a third
entity, known as a
composite/associative entity
The ____ is created with the primary key
from both tables with M:N relationships. The new
entity has a ___, which is a combination of
primary keys from the original two entities.
composite entity; composite key
In a database, there are entities that cannot exist by
themselves. Such entities are known as
weak entities
The following example, is an example of what type of entity?
In the employee database, there is an entity called EMPLOYEE with employees’
demographic information and another entity called
DEPENDENT with information about each employee’s
dependents.
Weak Entities
The _____ entity cannot exist by itself. In other
words, you need the existence of an employee for his or her dependent to exist in the database.
DEPENDENT