Chapter 4: Physical Database Design and E-R Diagrams Study Guide

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

1/45

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.

46 Terms

1
New cards

Physical Database Design

Focuses on how data is stored and accessed in a database.

2
New cards

Data Structures

Methods for organizing and storing data.

3
New cards

Flat Files

Can be ordered using various data structures.

4
New cards

Sequential Lists

Records are physically placed in the order they will be processed.

5
New cards

Linked Lists

Each data record has a pointer to another related record.

6
New cards

Indexes (Inverted Lists)

A separate table contains pointers to related records.

7
New cards

B-Trees

Multilevel indexes for both sequential and direct data access.

8
New cards

Sequence Set

Index containing an entry for every record in the file, usually by primary key value.

9
New cards

Index Set

Index pointing to groups of entries in the sequence set data.

10
New cards

Balanced Trees

All data records are equidistant from the top entry in the index set.

11
New cards

Tree Relationship

One or more 1:N relationships where each child record has only one parent record.

12
New cards

Simple Network

Collection of records and 1:N relationships among them.

13
New cards

Complex Network

Collection of records and N:M relationships among them.

14
New cards

Representing Trees

Sequential lists, linked lists, and indexes can represent trees.

15
New cards

Representing Complex Networks

Decomposition into trees or simple networks; using indexes; linked lists are generally not used by DBMS products for complex networks.

16
New cards

Key

A field that uniquely identifies a record; usually the primary key.

17
New cards

Secondary Keys

Used to access data based on fields other than the primary key.

18
New cards

Unique

Can only be represented with indexes.

19
New cards

Nonunique

Can be represented with linked lists and indexes.

20
New cards

Set

All records with the same value of a non-unique secondary key.

21
New cards

Good candidates for indexing.

- Columns Used in ORDER BY Clause

- Columns Usable Without Examining Table Data

- Columns Matching a Range of Values

- Join Columns

- Columns Compared for Equality

22
New cards

Multi-Column Indexing

Sorting by multiple columns.

23
New cards

Clustering

Records from two or more tables are stored in the same file physically, even if they are logically separate.

24
New cards

Implementation

Adds a table identifier to each record.

25
New cards

Decomposition

Splitting a table into two or more tables to improve query performance.

26
New cards

Partitions

Resulting tables from decomposition.

27
New cards

Horizontal Decomposition (Sharding)

Rows are split into multiple smaller tables.

28
New cards

Vertical Decomposition

Partitions have the same number of rows but only a subset of the columns, each containing a copy of the primary key of the original table.

29
New cards

IDEF1X

A variation of the entity-relationship (E-R) model that assumes a relational database will be used.

30
New cards

Unified Modeling Language (UML)

Structures and techniques for modeling and designing object-oriented programs (OOP) and applications.

31
New cards

Nonidentifying Connection Relationships

1:1 or 1:N relationships between non-ID-dependent entities, same as HAS-A relationships.

32
New cards

Identifying Connection Relationship

Same as ID-dependent relationships.

33
New cards

Nonspecific Relationships

Same as many-to-many (N:M) relationships.

34
New cards

Categorization Relationships

IS-A relationships; generic entity (supertype) and category entity (subtype).

35
New cards

Domains

A named set of values that an attribute can have.

36
New cards

Domain Types

Different classifications of domains.

37
New cards

Base Domain

Data type and possibly a value list or range definition.

38
New cards

Type Domain

Subset of a base domain or another type domain.

39
New cards

Strong Entities

Represent 1:1, 1:N, and N:M HAS-A relationships.

40
New cards

Weak Entities

A filled-in diamond is added to the line adjacent to the parent of the weak entity.

41
New cards

Subtypes

Represents IS-A relationships.

42
New cards

Visibility of Attributes and Methods

Indicates the access level of attributes and methods in UML.

43
New cards

Public attribute

`+` (plus sign) indicates a public attribute.

44
New cards

Protected attribute

`#` (number sign) indicates a protected attribute.

45
New cards

Private attribute

`-` (minus sign) indicates a private attribute.

46
New cards

Constraints and Methods

Constraints such as PrimaryKey, and methods such as GetName() and SetName().