Databases-chap 3 Flashcards

The relational database model

1
Q

Relation

A

A table with columns and rows

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

Attribute

A

A named column of a relation

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

Record

A

Logically connected set of one or more fields that describe a person, place or thing

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

Domain

A

Is the set of allowable values for one or more attributes

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

Relational schema

A

A textual representation of database tables, where each table is described by its name followed by a list of its attributes in parenthesis

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

Keys

A

Consist of one or more attributes that determine other attributes. Concept known as determination

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

Cardinality

A

The number of rows

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

Degree

A

The number of its attributes/columns

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

Candidate key

A

An attribute that determines all the other attributes in the relation, Pk from these
A minimal super key, a super key that does not contain a subset of attributes that is itself a super key

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

PK

A

An attribute that uniquely identifies any given row

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

COK

A

A key composed of more than one attribute

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

FK

A

Is an attribute whose values match PK values in the related table

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

Nulls

A

-No data entry
-Not permitted in PK
-Should be avoided in other attributes
It can represent
-An unknown attribute value
-A known, but missing attribute value
-A “not applicable” condition

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

Data redundancy

A

FK helps with duplication of the attributes
The state of having more than one instance of something, often resulting in unnecessary duplication/repetition

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

Entity integrity

A

Ensures that each row is uniquely identified by the PK
It means that a proper search for an existing row will always be successful

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

Referential integrity

A

-Concerns how 2 tables reference each other
-Through FK, can be null or a valid entry

17
Q

Data dictionary

A

Provides detailed accounting of all tables found within the database
Contains metadata

18
Q

System catalogue

A

Is a detailed system data dictionary, describes all objects within the database

19
Q

Indexes

A

Orderly arrangement used to logically access rows in a table like finding a book in the library
-Composed of an index key key and set of pointers
-Pointers are identifiers

20
Q

Unique index

A

Is one in which the index key can have only one pointer value(row) associated with it

21
Q

Super key

A

Any key that uniquely identifies each row

22
Q

Secondary key

A

A key that is used strictly for data retrieval purposes

23
Q

Flags

A

Special codes that indicate the absence of some value

24
Q

Associations have several characteristics

A

Association name
Association direction(arrows)
Role name
Multiplicity