Ch3 Flashcards

(44 cards)

1
Q

Entity

A

A person, place, event, or thing for which we intend to collect data

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

Attribute

A

Describes a characteristics of an entity

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

Entity Set

A

A group of entities of the same type

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

Table/Relation

A

Contains a group of related entities

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

Rows and Columns

A

A table is composed of this

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

Row

A

Tuple

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

Each __ represents a single __ within the entity set

A

Row, entity

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

Each ___ represents an ___ and is identified by a district name

A

Column, Attribute

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

Each row/column intersection represents a single data value

A

Atomic

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

Cardinality

A

The number of tuples in a table

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

Degree

A

The number of column is known as

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

Attribute Domain

A

All values in a column must conform to the same data format (type) and must be within a specified range

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

Changing the order of the rows and/or column___

A

Does not change the table

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

Key

A

Consists of one or more attributes that determines other attributes within an entity

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

Composite key

A

A key that composed of more than one attributes

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

If attribute B is functionally dependent on a composite key A but not any subset of A then B is _____ on A

A

Fully Functionally dependent

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

Superkey

A

An attribute or a combination of attributes that uniquely identifies each row in a table

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

Candidate Key

A

A minimal superkey, i.e., it does not contain a subset of attributes that is itself a superkey

19
Q

Primary Key

A

A candidate key selected to uniquely identify an entity
Cannot have null values
Enforces Entity Integrity
Is a superkey as well as a candidate

20
Q

Entity Integrity

A

Guarantees that each entity is uniquely identified by a non-null primary key value

21
Q

Foreign Key

A

An attribute (or a combination of attributes) in one table whose values must either match the primary key values in a designated table to be null
Used to logically link one table with another
Enforces Referential Integrity

22
Q

Referential Integrity

A

Guarantees valid references to another table, i.e., cannot delete a tuple from a table that is references by in another table through a foreign key

23
Q

Secondary Key

A

Used for data retrieval purpose
May consist of a single attribute or a combination of attributes
The DBMS maintains indexes on secondary keys for faster search and retrieval of data
May have duplicate values

24
Q

Relational Database Operators

A

Based on relational algebra theory
Define functions to manipulate data in one or more tables (relations)
Application of a relational operator to one or more tables results in another table

25
Eight relational operators are:
UNION INTERSECT DIFFERENCE PRODUCT SELECT PROJECT JOIN DIVIDE
26
Union Compatibility
Two table are said to be union-compatible when they have the same degree (number of attributes)
27
Union
The tables must be union compatible A Union B results in C that contains all tuple from both A and B with no duplicates
28
Intersect
The tables must be union compatible A Intersect B results in C that contains tuples that are common to both A and B
29
Difference
The tables must be union compatible A MINUS B results in C that contains the tuples that appear in A but not in B
30
Product
PRODUCT produces a list of all possible pairs of rows from two tables If table A has 5 rows and B has 10, A product B will yield a table with 50 rows
31
Select
Yields all attributes of selected tuple that satisfy a specified condition Produces a horizontal subset of a table
32
Project
Produces a list of all values for selected attributes It yields a vertical subset of a table
33
Join
Allows us to combine information from two or more tables The tables participating in the join operation must have attributes defined over a common domain
34
EquiJoin
Compares specified column of two tables based on equality condition
35
Natural Join
EquiJoin with the duplicate column removed Performed by a Project on the result of equijoin (Inner Join)
36
Natural Join
When the term Join is mentioned without any prefix
37
Outer Join
Unmatched rows from the participating tables are retained in the result table with unmatched attributes left blank or null
38
Left Outer join
Keeps all tuple from the left relation
39
Right Outer Join
Keeps all tuple from the right section
40
Theta Join
EquiJoin with the equality operator replaced by any other comparison operator, such as greater than, less than, etc
41
Data Dictionary
Contains metadata that describes the data stored in the database
42
Data Dictionary stores:
The names of the data items in the database Types and sizes of the data items Constraints on each data item Names of authorized users and types of access allowed
43
System Catalog
Very detailed system data dictionary Describes all objects within the database
44
System Catalog cont.
System-created database Tables can be queried just like any other tables Automatically produces database documentation All data dictionary information are found in here