Filters
Question type

Study Flashcards

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

Correct Answer

verifed

verified

In the USER_CONSTRAINTS view,the constraint type for a NOT NULL constraint will be listed as N._________________________​

A) True
B) False

Correct Answer

verifed

verified

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


A) ​C
B) ​K
C) ​N
D) ​R

E) A) and B)
F) B) and C)

Correct Answer

verifed

verified

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


A) ​column
B) ​table
C) ​row
D) ​database

E) A) and B)
F) B) and D)

Correct Answer

verifed

verified

In a "one-to-many" relationship,which constraint is usually added to the "many" table?​


A) ​UNIQUE
B) ​PRIMARY KEY
C) ​FOREIGN KEY
D) ​NOT NULL

E) A) and D)
F) None of the above

Correct Answer

verifed

verified

In the USER_CONSTRAINTS view,the constraint type for a PRIMARY KEY constraint will be listed as PK.​

A) True
B) False

Correct Answer

verifed

verified

Which of the following keywords must have been included during the creation of a FOREIGN KEY constraint to allow a row from the parent table to be deleted,even if it is referenced by a row in the child table?​


A) ​CASCADE
B) ​AUTO REMOVE
C) ​ON DELETE CASCADE
D) ​none of the above

E) None of the above
F) A) and B)

Correct Answer

verifed

verified

The ____ constraint prevents the user from adding a NULL value in the specified column.​


A) ​IS NULL
B) ​NOT NULL
C) ​NULL
D) ​NULL KEY

E) None of the above
F) C) and D)

Correct Answer

verifed

verified

Which of the following constraints cannot be added to an existing table with the ADD clause of the ALTER TABLE command?​


A) ​CHECK
B) ​UNIQUE
C) ​NOT NULL
D) ​none of the above

E) A) and B)
F) A) and C)

Correct Answer

verifed

verified

If a(n)____________________ constraint is being dropped,then only the type of constraint and the column name need to be included in the DROP clause of the ALTER TABLE command.​

Correct Answer

verifed

verified

Only one PRIMARY KEY constraint can exist for each table.​

A) True
B) False

Correct Answer

verifed

verified

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.​

A) True
B) False

Correct Answer

verifed

verified

When a FOREIGN KEY constraint is being created,the REFERENTIAL keyword is used to indicate the table being referenced._________________________​

A) True
B) False

Correct Answer

verifed

verified

A PRIMARY KEY that consists of more than one column is called a(n) ____ key.​


A) ​multiple
B) ​composite
C) ​comprehensive
D) ​coherent

E) A) and D)
F) C) and D)

Correct Answer

verifed

verified

A NOT NULL constraint is a special FOREIGN KEY constraint.​

A) True
B) False

Correct Answer

verifed

verified

If a(n)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._________________________​

A) True
B) False

Correct Answer

verifed

verified

​Structure of the ORDERITEMS table ​Structure of the ORDERITEMS table    -If the constraints on the ORDER# and ITEM# columns of the ORDERITEMS table were created as a PRIMARY constraint,and the actual constraint name is not known,which of the following commands can be used to delete the constraint?​ A)  ALTER TABLE orderitems DROP ALL CONSTRAINTS; B)  ALTER TABLE orderitems DELETE ALL CONSTRAINTS; C)  ALTER TABLE orderitems DROP PRIMARY KEY; D)  ​ALTER TABLE orderitems DELETE PRIMARY KEY; -If the constraints on the ORDER# and ITEM# columns of the ORDERITEMS table were created as a PRIMARY constraint,and the actual constraint name is not known,which of the following commands can be used to delete the constraint?​


A) ALTER TABLE orderitems
DROP ALL CONSTRAINTS;
B) ALTER TABLE orderitems
DELETE ALL CONSTRAINTS;
C) ALTER TABLE orderitems
DROP PRIMARY KEY;
D) ​ALTER TABLE orderitems
DELETE PRIMARY KEY;

E) C) and D)
F) A) and C)

Correct Answer

verifed

verified

The table level approach can be used to create any constraint,except a CHECK constraint.​

A) True
B) False

Correct Answer

verifed

verified

Which view will display the names of all the constraints that you own?​


A) ​DISPLAY_CONSTRAINTS
B) ​ALL_CONSTRAINTS
C) ​USER_CONSTRAINTS
D) ​TABLE_CONSTRAINTS

E) A) and B)
F) A) and C)

Correct Answer

verifed

verified

A maximum of ____________________ PRIMARY KEY constraints can exist for each database table.​

Correct Answer

verifed

verified

Showing 81 - 100 of 132

Related Exams

Show Answer