3.8 View tables 4.1 Entities, relationships, and attributes

0.0(0)
studied byStudied by 0 people
learnLearn
examPractice Test
spaced repetitionSpaced Repetition
heart puzzleMatch
flashcardsFlashcards
Card Sorting

1/19

encourage image

There's no tags or description

Looks like no tags are added yet.

Study Analytics
Name
Mastery
Learn
Test
Matching
Spaced

No study sessions yet.

20 Terms

1
New cards

materialized view

  • is a view for which view table data is stored at all times.

  • Whenever a view table changes, the corresponding view tables can also change, so materialized views must be refreshed.

2
New cards

WITH CHECK OPTION

is specified, the database rejects inserts and updates that do not satisfy the view query WHERE clause, the database generates an error message that explains the violation.

3
New cards

entity

a person, place, product, concept, or activity.

4
New cards

relationship

a statement about two entities.

5
New cards

attribute

a descript­ive property of an entity.

6
New cards

reflexive relationship

relates an entity to itself.

7
New cards

entity-relationship diagram / ER diagram

  • is a schematic picture of entities, relationships, and attributes.

  • Entities are drawn as rectangles.

8
New cards

entity type

is a set of things. Ex: All employees in a company.

9
New cards

relationship type

is a set of related things. Ex: Employee-Manages-Department is a set of (employee, department) pairs, where the employee manages the department.

10
New cards

attribute type

is a set of values. Ex: All employee salaries.

11
New cards

entity instance

is an individual thing. Ex: The employee Sam Snead.

12
New cards

relationship instance

is a statement about entity instances. Ex: "Maria Rodriguez manages Sales." .

13
New cards

attribute instance

is an individual value. Ex: The salary $35,000.

14
New cards

Analysis for Database Design

  • Conceptual Design

  • Analysis develops an entity-relationship model, capturing data requirements while ignoring implementation details.

15
New cards

Analysis Steps

Discover entities, relationships, and attributes

Determine cardinality

Distinguish strong and weak entities

Identify and Create supertype and subtype entities

16
New cards

Logical design

converts the entity-relationship model into tables, columns, and keys for a particular database system.

17
New cards

Logical design steps

Implement entities

Implement relationships

Implement attributes

Apply normal form

18
New cards

Physical design

adds indexes and specifies how tables are organized on storage media.

19
New cards

Strong Entity

  • entity with own primary key.

  • can exist independent of other entities.

20
New cards

Weak Entity

  • entity with composite key.

  • must depend on strong entities to exist.

  • e.g. Orders (dependent on Customers), phone numbers (dependent on Customers).