Quiz 6 Flashcards

1
Q

The first step in assessing table structure includes ________.
a. Both counting rows and examining columns are correct
b. counting rows
c. examining data values
d. examining columns

A

a. Both counting rows and examining columns are correct

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

You have been given two tables, CUSTOMER and SALE. You want to check the referential integrity constraint:

SALE.CustomerNumber must exist in CUSTOMER.CustomerNumber

You run the following SQL query:

SELECT CustomerNumber
FROM SALE
WHERE CustomerNumber NOT IN
(SELECT CustomerNumber
FROM CUSTOMER);

What is shown in the results of this query?
a. All values of CustomerNumber that violate the constraint.
b. All values of CustomerNumber that match the constraint.
c. All values of Customer number that are in CUSTOMER but not in SALE.
d. All values of CustomerNumber where
SALE.CustomerNumber = CUSTOMER.CustomerNumber.

A

a. All values of CustomerNumber that violate the constraint.

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

________ is the process of joining two or more tables and storing the result as a single table.
a. Querying
b. Updating
c. Denormalization
d. Normalization

A

c. Denormalization

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

Referential integrity constraints are used to limit the possible values of a ________.
a. foreign key
b. candidate key
c. surrogate key
d. composite key

A

a. foreign key

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

A relation is in fourth normal form if it is in BCNF and it has no ________.
a. deletion dependencies
b. transitive dependencies
c. multivalued dependencies
d. partial dependencies

A

c. multivalued dependencies

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