Understanding Relational Data Structures and Keys (2)

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

1/16

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.

17 Terms

1
New cards

RELATION

Named two-dimensional table of data consisting of a set of named columns and an arbitrary number of unnamed rows.

2
New cards

Attribute

A named column in a relation.

3
New cards

Record

Each row corresponds to a record that contains data values for a single entity.

4
New cards

Relation Structure

Shorthand notation of relation.

5
New cards

Properties of Relation

Each relation in a database has a unique name, and each entry at the intersection of each row and column is ATOMIC (single value).

6
New cards

Primary Key

An attribute (or combination of attributes) that uniquely identifies each row in a relation.

7
New cards

Composite Key

A primary key that consists of more than one attribute.

8
New cards

Foreign Key

An attribute (possibly composite) that serves as the primary key of another relation.

9
New cards

Entity Integrity

Designed to assure that every relation has a primary key, and that the data values for that primary key are all valid.

10
New cards

Referential Integrity

A rule that maintains consistency among the rows of two relations.

11
New cards

Simple Attribute

Each simple attribute of the entity becomes an attribute of the relation.

12
New cards

Multivalued Attribute

When a regular entity contains a multivalued attribute, two relations are created.

13
New cards

Weak Entity

For each weak entity type, create a new relation and include all of the single-valued attributes.

14
New cards

ORDER

ORDER(OrderNo, CustID, Date, TotalAmount)

15
New cards

Associative Entity

is to create three relations: one for each of the two participating entity types, and the third for the associative entity.

16
New cards

ORDER_DETAILS

ORDER_DETAILS(OrderNo, ItemNo, QtyOrdered, Amount)

17
New cards

Schematic Diagram

CUSTOMER, ITEM, PRICE_HISTORY, ORDER, ORDER_DETAILS.