Docsity

Database Lab_Ch4_Quiz updated version /answered, Exams of Advanced Education

Toggle sidebar
bg1
1 / 7
Database Lab_Ch4_Quiz updated version /answered
1. Which of the following keywords must have been included during
the cre-ation 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: ON DELETE CASCADE
2.
Which of the following is a valid statement?:
"Constraints are rules used to enforce
business
rules,
practices,
and
policies."
Constraints
prevent
errors
by
not
allowing
data
to
be
added
to
tables if
the
data
violates
specific
rules.
Constraints
ensure
the
accuracy
and
integrity
of
data.
all
of
the
above
3. Which of the following are used to enforce business rules?:
constraints
4.
Which of the following statements about a PRIMARY KEY is incorrect?:
Each data
value
must
be
unique.
XX
5. In a ""one-to-many"" relationship, which constraint is
usually
added to the ""many"" table?: FOREIGN KEY
6. The UNIQUE constraint differs from the PRIMARY KEY
constraint
in
what
way?:
The UNIQUE constraint allows NULL values.
7.
How
can
constraints
be
added
to
a
table?:
as
part
of
the
ALTER
TABLE
command
XX
8. Which of the following statements about creating
constraints is incorrect?:
9. Which of the following is the standard abbreviation
for the constraint FOREIGN KEY:
_FK XX
10. Which of the following is the standard abbreviation for the
constraint NOT NULL?: nn
11. Which of the following is not a constraint type in Oracle 12c ?:
REFERENCE
12. When a constraint is created
at the level with the CREATE TABLE
pf3
pf4
pf5

Partial preview of the text

Download Database Lab_Ch4_Quiz updated version /answered and more Exams Advanced Education in PDF only on Docsity!

Database Lab_Ch4_Quiz updated version /answered

  1. Which of the following keywords must have been included during the cre-ation 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: ON DELETE CASCADE
  2. Which of the following is a valid statement?: "Constraints are rules used to enforce business rules, practices, and policies." Constraints prevent errors by not allowing data to be added to tables if the data violates specific rules. Constraints ensure the accuracy and integrity of data. all of the above
  3. Which of the following are used to enforce business rules?: constraints
  4. Which of the following statements about a PRIMARY KEY is incorrect?: Each data value must be unique. XX
  5. In a ""one-to-many"" relationship, which constraint is usually added to the ""many"" table?: FOREIGN KEY
  6. The UNIQUE constraint differs from the PRIMARY KEY constraint in what way?: The UNIQUE constraint allows NULL values.
  7. How can constraints be added to a table?: as part of the ALTER TABLE command XX
  8. Which of the following statements about creating constraints is incorrect?:
  9. Which of the following is the standard abbreviation for the constraint FOREIGN KEY: _FK XX
  10. Which of the following is the standard abbreviation for the constraint NOT NULL?: nn
  11. Which of the following is not a constraint type in Oracle 12c ?: REFERENCE
  12. When a constraint is created at the level with the CREATE TABLE

com-mand, the constraint definition is simply included as part of the column definition.: - TABLE XX

  1. The NOT NULL constraint can only be created at the level: COLUMN
  2. If a constraint applies to more than one column, the constraint must be created at the level: TABLE
  1. Which of the following types of constraints will not allow NULL values?: PRI-MARY KEY
  1. The constraint requires that a specific condition be met before a record can be added to a table.: CHECK
  2. The constraint prevents the user from adding a NULL value in the specified column.: NOT NULL
  3. Which of the following constraints cannot be added to an existing table with the ADD clause of the ALTER TABLE command?: NOT NULL
  4. Where does the Oracle12c server store information about objects in the database, including information about constraints?: In the data dictionary
  5. In the USER_CONSTRAINTS view, the value displayed in the CON-STRAINT_TYPE column will be a(n) for a FOREIGN KEY constraint.: R
  6. In the USER_CONSTRAINTS view, the value displayed in the CON- STRAINT_TYPE column will be a(n) for a NOT NULL constraint.:
  7. In the USER_CONSTRAINTS view, the value displayed in the CON- STRAINT_TYPE column will be a(n) for a CHECK constraint: C
  8. Which clause will allow you to disable a constraint?: DISABLE
  9. Based on the structure of the ORDERITEMS table, which of the following commands was most likely used to create the table?: CREATE TABLE orderitems (order# NUMBER (4), item# NUMBER(2), isbn VARCHAR2(10), qty NUMBER(3), NOT NULL (order#, item#));
  10. Based on the structure of the ORDERITEMS table, which of the following commands will add a NOT NULL constraint to the ISBN column?:
  11. Which of the following commands will add a UNIQUE constraint to the MINRETAIL column of the PROMOTION table?: ALTER TABLE promotion
  1. Which of the following statements about creating constraints is incorrect: - The NOT NULL constraint can be created at either the column level or the table level.
  2. Constraints are always enforced at the level.: Table
  3. When a constraint is created at the table level, the constraint definition is provided the column definition list.: After
  4. Based on the structure of the PROMOTION table, which of the following commands will add a PRIMARY KEY constraint to the GIFT column?: ALTER TABLE promotion ADD PRIMARY KEY(gift);