Midterm Flashcards

(15 cards)

1
Q

How does a deletion anomaly occur?

A

the unintended loss of data due to deletion of other data

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

How does an insertion anomaly occur?

A

The inability to add data to the database due to absence of other data

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

How does a modification anomaly occur?

A

unexpected side effect from trying to insert, update, or delete a row

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

Define a database

A

A self-describing collection of related records or, for relational databases, of related tables.

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

What is a foreign key?

A

Attribute that points to a primary key

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

What is the purpose of metadata within a database?

A

Data that is about the data.

example: description of an attribute

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

In order to implement a many-to-many relationship within a database, what type of entity needs to be placed between the entities that form the many-to-many relationship?

A

associative entity

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

What type of relationship is formed when an associative entity is placed between it?

A

many-to-many relationship

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

Describe a non-ID dependent weak entity

A

A weak entity is an entity that cannot exist by itself and a non-ID dependent entity is when a foreign key is not part of a primary key

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

(essn, pno) -> hours

A

essn and pno are the determinant

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

What is the purpose of a primary key?

A

To identify a row in a table

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

what is a transitive dependency?

A

a non-prime attribute that points to another non-prime attribute

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

3NF has to have ______

A

2 non-prime attributes

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

What is a composite key?

A

Two primary keys

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

Purpose of a referential integrity constraint

A

To insure that a foreign key points to a primary key

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