Database Programming Section 14 Quiz
Database Programming Section 14 Quiz
Section 14 Quiz
(Answer all questions in this section)
CHECK
UNIQUE
FOREIGN KEY
A foreign key value must match an existing value in the parent table.
ON DELETE CASCADE
10. If a Primary Key is made up of more than one column, one of the
columns can be null. True or False? Mark for Review
(1) Points
True
False (*)
(Answer all questions in this section)
11. You need to ensure that the LAST_NAME column does not
contain null values. Which type of constraint should you define on the
LAST_NAME column? Mark for Review
(1) Points
CHECK
PRIMARY KEY
UNIQUE
12. You need to ensure that the LAST_NAME column only contains
certain character values. No numbers or special characters are
allowed.
Which type of constraint should you define on the LAST_NAME
column? Mark for Review
(1) Points
UNIQUE
PRIMARY KEY
NOT NULL
CHECK (*)
NOT NULL
UNIQUE KEY
14. What is the highest number of NOT NULL constraints you can
have on a table? Mark for Review
(1) Points
10
You can have as many NOT NULL constraints as you have columns
in your table. (*)
15. Which statement about the NOT NULL constraint is true? Mark
for Review
(1) Points
The NOT NULL constraint can be defined at either the column level
or the table level.
The NOT NULL constraint must be defined at the column level. (*)