Chapter 3 Lecture Flashcards

(51 cards)

1
Q

A database is in First Normal Form when the following two conditions are satisfied

A

Repeating groups have been resolved and the prime key has been identified

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

A database is in Second Normal Form when Database is

A

in First Normal Form and every non-key attribute is fully functionally dependent on the primary key

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

A database is in Third Normal Form when Database is

A

is in Second Normal Form and it has no transitive dependencies

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

A foreign key must match a primary key value in another relation, or the foreign key value must be NULL. This rule is

A

Referential Integrity Rule

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

The entity integrity rule states that:

A

no primary key attribute can be null

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

What value will you assign to an attribute when you do not know it’s value or when the value is unknown

A

NULL

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

An inconsistency may occur when attempting to update a table that is not normalized. What is the term given to such a situation?

A

Update Anomaly

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

Is it possible for PART of a foreign key to be NULL? Why?

A

No. Either the whole foreign key is NULL or the whole foreign key is NOT NULL

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

T/F - Normalization is done after Logical Database Design is complete

A

True

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

T/F - Normalization takes into consideration how data is displayed, how it is used in reports and how a database is queried.

A

False

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

T/F - One of the two conditions for a relation to be in First Normal Form is: absence of repeating groups.

A

True

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

T/F - When inserting a row in a normalized database, i.e., 3NF, there may be additional insertions that result in duplication of data.

A

False - “You cannot add any data you cannot remove any data; you just focus on removing the anomalies”

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

T/F - When deleting a row in a normalized database, i.e., 3NF, there may be loss of data.

A

False

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

T/F - When modifying a single row in a normalized database, there may be changes required to other rows.

A

False - That is the objective of a normalized database

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

T/F - The process of Normalization is reversible, i.e., it is possible to put data in 1NF from 3NF.

A

True

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

T/F - In the Normalization process, it is possible that some columns can be ignored.

A

False

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

T/F - A NULL value is the same as a space or a zero

A

False

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

T/F - The entity integrity rule states that a primary key attribute can be null

A

False

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

T/F - Referential integrity is satisfied when a value of one column of a table exists as a value of another column in a different, or same, table.

A

True

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

T/F - A foreign key can have a NULL value.

A

True

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

T/F - The columns of a relation can be rearranged without changing the meaning or use of the relation.

22
Q

T/F - Rows of a relation must not be interchanged and must be stored in a certain sequence

23
Q

T/F - A primary key uniquely identifies each row in a relation

24
Q

T/F - A composite key consists of only one attribute

25
The objective of Normalization is to:
-Relations are free of anomalies -Easier to maintain referential integrity -Easier to maintain data
26
When you normalize a database, will it run faster or slower?
Slower. Everything in one big table will likely run faster. (Nowadays computers are so fast it doesn't really matter)
27
Software that is used to create, maintain, and provide controlled access to databases is called
Database Management System (DBMS)
28
What are 3 main purposes of a database management system (DMBS)
Store data, Create Data, Update Data
29
T/F - A relationship is an association between entity types
True
30
The _______ of a relationship is the number of entity types that participate in the relationship
Degree
31
A rule that specifies the number of instances of one or more entities
Cardinality
32
Processed data is called _________
Information
33
Data in a table is stored in the form of _________ and ____________
Rows, Columns
34
Description of properties of data is called _________________
Metadata
35
A word or phrase that has a specific meaning for the business
Term
36
A fact is an association between two or more
Terms
37
Supplier, Student, Book, Course are examples of
Entities
38
A strong entity is an entity that exists independent of other entity types
True
39
When it comes to storing and sharing, a business rule must be
Stored only once in a central repository then shared throughout the organization
40
T/F - A business rule can have many interpretations. Each stakeholder can have his own interpretation.
False
41
Data models in an organization change less frequently than business rules.
True
42
An entity whose existence depends on another entity is called
A weak entity
43
An attribute that must have a value for every entity (relation) instance that it is associated with is a/an
Required attribute (in SQL it's called mandatory or NOT NULL)
44
An attribute that cannot be broken into smaller components is called a/an
Atomic attribute
45
An attribute whose value can be calculated from other attributes is called a
derived attribute
46
A Relational Database represents data as a collection of
Tables
47
A time value that is associated with a data value, indicating when the data value was updated
Timestamp
48
When it comes to data, the term update implies
Insertion, deletion or change or a data value
49
Consider an invoice. Line_Item_Amount is an attribute that is the product of Quantity and Unit_Price, Line_Total is the sum of all Line_Item_Amount in an invoice. The data analyst decides not to store Line_Item_Amount and Line_Total. How will you describe this attribute?
Derived Attribute
50
What is partial functional dependecy?
When a non-key depends on only part of the prime key
51
What is transitive dependency?
When a non-key depends on another non-key