Quiz 3 Ch3 Flashcards

1
Q

A __ is used to link one table with another in a relational database

A

Foreign Key

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

Which concept ensures that each row in a table has unique identifier and that no part of the primary key can have null value?

A

Entity Integrity

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

Which type of JOIN retains unmatched rows from one of the tables?

A

Outer Join

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

Which type of integrity does a Foreign Key enforce?

A

Referential Integrity

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

Which key is primarily used for data retrieval purposes in a relational database?

A

Secondary Key

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

What operation between two sets, A and B, results in a set C that contains the tuples common to both A and B?

A

Intersection

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

How is a Many-to-Many (M:N) relationship typically handled in a relational database?

A

By creating a middle (linking) table

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

Which relationship type would best describe Employees working in Departments where each department can have many employees, but each employee works in only one department?

A

One-to-Many (1:M)
Many-to-One (M:1)

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

In a bookstore database, each book can have multiple authors, and each author can write multiple books. How would you model this relationship?

A

Many-to-Many (M:M)

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

What does an attribute describe in a database?

A

A characteristic of an entity

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