Exam 4: Constraints

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

A(n)  FOREIGN KEY \underline { \text { FOREIGN KEY } } constraint can only reference a column in the parent table that has been designated as the primary key for that table. _________________________

(True/False)
4.7/5
(43)

Which of the following statements about creating constraints is incorrect?

(Multiple Choice)
4.8/5
(29)

The NOT NULL constraint can only be created at the ____ level.

(Multiple Choice)
4.8/5
(33)

The ALTER TABLE command with the ENABLE clause can be used to enable a constraint.

(True/False)
4.9/5
(35)

With the exception of the NOT NULL constraint, constraints can be added to a table using the ADD clause of the ALTER TABLE command.

(True/False)
4.9/5
(27)

A UNIQUE constraint is the same as a PRIMARY KEY constraint, except that it will accept NULL values.

(True/False)
4.9/5
(37)

Structure of the PROMOTION table Structure of the PROMOTION table    -Based on the structure of the PROMOTION table, which of the following commands will ensure that the value entered for the MINRETAIL column is less than the value entered for the MAXRETAIL column? -Based on the structure of the PROMOTION table, which of the following commands will ensure that the value entered for the MINRETAIL column is less than the value entered for the MAXRETAIL column?

(Multiple Choice)
4.8/5
(26)

When a constraint is created at the ____ level with the CREATE TABLE command, the constraint definition is simply included as part of the column definition.

(Multiple Choice)
4.7/5
(31)

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

(Multiple Choice)
4.8/5
(35)

When dropping a(n)  PRIMARY KEY \underline {\text { PRIMARY KEY } } constraint, the name of the column does not need to be included in the ALTER TABLE command. _________________________

(True/False)
4.7/5
(39)

Any constraint can be created at the table or the column level.

(True/False)
4.8/5
(42)

A constraint for a composite primary key must be created at the table level.

(True/False)
4.8/5
(29)

Unless a PRIMARY KEY or a(n) ____________________ constraint is being dropped, the actual name assigned to the constraint must be included in the ALTER TABLE command.

(Short Answer)
4.9/5
(40)

Which of the following is the standard abbreviation for the constraint FOREIGN KEY?

(Multiple Choice)
4.8/5
(36)

If a constraint applies to more than one column, the constraint must be created at the ____ level.

(Multiple Choice)
4.8/5
(33)

A  Datatype \underline { \text { Datatype } } is a rule used to ensure the accuracy of data stored in a database. _________________________

(True/False)
4.8/5
(25)

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

(Multiple Choice)
4.9/5
(26)

Constraints are used to ensure the accuracy and integrity of the data contained in the database.

(True/False)
4.8/5
(44)

Each column can only be included in one constraint.

(True/False)
5.0/5
(32)

When dropping a constraint, the user is always required to specify the name of the constraint being dropped.

(True/False)
4.8/5
(28)
Showing 21 - 40 of 132
close modal

Filters

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