Exam 4: Constraints

arrow
  • Select Tags
search iconSearch Question
flashcardsStudy Flashcards
  • Select Tags

If a user is going to assign a name to a constraint, the ____________________ keyword must be included in the command.

Free
(Short Answer)
4.7/5
(41)
Correct Answer:
Verified

CONSTRAINT

Structure of the ORDERITEMS table Structure of the ORDERITEMS table    -If a PRIMARY KEY constraint, named ORDERITEMS_PK, for the ORDER# and ITEM# columns of the ORDERITEMS table have been disabled, which of the following commands will enable the constraint? -If a PRIMARY KEY constraint, named ORDERITEMS_PK, for the ORDER# and ITEM# columns of the ORDERITEMS table have been disabled, which of the following commands will enable the constraint?

Free
(Multiple Choice)
4.9/5
(41)
Correct Answer:
Verified

B

If the Oracle11g server assigns a name to a constraint, it will use the format ____________________ for the constraint name.

Free
(Short Answer)
4.7/5
(37)
Correct Answer:
Verified

SYS_Cn

A constraint can only be created as part of the CREATE TABLE command.

(True/False)
5.0/5
(35)

A constraint can be renamed using the ALTER TABLE command.

(True/False)
4.8/5
(34)

A NOT NULL constraint can be added to an existing table using the ALTER TABLE command with the ____________________ clause.

(Short Answer)
4.8/5
(39)

The CONSTRAINT keyword is required if the user is going to assign a name to a constraint.

(True/False)
4.9/5
(29)

Structure of the ORDERITEMS table Structure of the ORDERITEMS table    -Based on the structure of the ORDERITEMS table, which of the following commands will add a NOT NULL constraint to the ISBN column? -Based on the structure of the ORDERITEMS table, which of the following commands will add a NOT NULL constraint to the ISBN column?

(Multiple Choice)
4.8/5
(26)

Which of the following types of constraints will not allow NULL values?

(Multiple Choice)
4.7/5
(38)

Where does the Oracle11g server store information about objects in the database, including information about constraints?

(Multiple Choice)
4.7/5
(32)

The MODIFY clause is used with the ALTER TABLE command to add a PRIMARY KEY constraint to an existing table.

(True/False)
4.8/5
(31)

A FOREIGN KEY constraint can be added to the column of a table to ensure that the referenced data value actually exists in the other table.

(True/False)
4.9/5
(36)

In the USER_CONSTRAINTS view, the value displayed in the CONSTRAINT_TYPE column will be a(n) ____ for a CHECK constraint.

(Multiple Choice)
4.7/5
(42)

In the USER_CONSTRAINTS view, the constraint type for a NOT NULL constraint will be listed as N\underline { N } _________________________

(True/False)
4.8/5
(27)

Explain the similarities and differences between the UNIQUE and PRIMARY KEY constraints.

(Essay)
5.0/5
(38)

If a(n)  FOREIGN KEY \underline {\text { FOREIGN KEY } } constraint has been created for a table, it means the data values in that column must be unique and cannot contain NULL values. _________________________

(True/False)
4.9/5
(31)

The ____________________ clause of the ALTER TABLE command must be used to drop an existing constraint.

(Short Answer)
4.9/5
(29)

A(n)  UNIQUE \underline { \text { UNIQUE } } constraint will allow NULL values to be stored in the designated column. _________________________

(True/False)
4.9/5
(35)

A CHECK constraint requires that a data value meet a certain condition before the record is added to the database table.

(True/False)
4.9/5
(35)

Which of the following is a valid statement?

(Multiple Choice)
4.7/5
(39)
Showing 1 - 20 of 132
close modal

Filters

  • Essay(0)
  • Multiple Choice(0)
  • Short Answer(0)
  • True False(0)
  • Matching(0)