Escrito por estudiantes que aprobaron Inmediatamente disponible después del pago Leer en línea o como PDF ¿Documento equivocado? Cámbialo gratis 4,6 TrustPilot
logo-home
Document preview thumbnail
Vista previa 2 fuera de 7 páginas
Examen

CONSTRAINTS CHAPTER-4 EXAM QUESTIONS AND CORRECT ANSWERS

Document preview thumbnail
Vista previa 2 fuera de 7 páginas

CONSTRAINTS CHAPTER-4 EXAM QUESTIONS AND CORRECT ANSWERS D. None of the above statements is correct - CORRECT ANSWERS statements is correct? Which of the following A. A PRIMARY KEY constraint allows NULL values in the primary key column(s) B. You can enable a dropped constraint if you need it in the future C. Every table must have at least one PRIMARY KEY constraint, or Oracle 11g doesn't allow the table to be created D. None of the above statements is correct A. PRIMARY KEYS - CORRECT ANSWERS type? A. PRIMARY KEYS B. UNIQUE C. CHECK D. FOREIGN KEY Which of the following is not a valid constraint C. ALTER TABLE books ADD CONSTRAINT books_pubid_nn NOT NULL (pubid); - CORRECT ANSWERS Which of the following SQL statements is invalid and returns an error message? A. ALTER TABLE books ADD CONSTRAINT books_pubid_uk UNIQUE (pubid); B. ALTER TABLE books ADD CONSTRAINT books_pubid_pk Primary Key (pubid); C. ALTER TABLE books ADD CONSTRAINT books_pubid_nn NOT NULL (pubid); D. ALTER TABLE books ADD CONSTRAINT books_pubid_fk FOREIGN KEY (pubid) REFERENCES publisher (pubid); E. All of the above statements are invalid

Vista previa del contenido

CONSTRAINTS CHAPTER-4 EXAM QUESTIONS
AND CORRECT ANSWERS
D. None of the above statements is correct - CORRECT ANSWERS Which of the following
statements is correct?

A. A PRIMARY KEY constraint allows NULL values in the primary key column(s)

B. You can enable a dropped constraint if you need it in the future

C. Every table must have at least one PRIMARY KEY constraint, or Oracle 11g doesn't allow the
table to be created

D. None of the above statements is correct



A. PRIMARY KEYS - CORRECT ANSWERS Which of the following is not a valid constraint
type?

A. PRIMARY KEYS

B. UNIQUE

C. CHECK

D. FOREIGN KEY



C. ALTER TABLE books ADD CONSTRAINT books_pubid_nn NOT NULL (pubid); - CORRECT
ANSWERS Which of the following SQL statements is invalid and returns an error message?

A. ALTER TABLE books ADD CONSTRAINT books_pubid_uk UNIQUE (pubid);

B. ALTER TABLE books ADD CONSTRAINT books_pubid_pk Primary Key (pubid);

C. ALTER TABLE books ADD CONSTRAINT books_pubid_nn NOT NULL (pubid);

D. ALTER TABLE books ADD CONSTRAINT books_pubid_fk FOREIGN KEY (pubid) REFERENCES
publisher (pubid);

E. All of the above statements are invalid

, A. 1 - CORRECT ANSWERS What are the maximum number of PRIMARY KEY constraints
allowed for a table?

A. 1

B. 2

C. 30

D. 255



E. None of the above commands is valid - CORRECT ANSWERS Which of the following is a
valid SQL command?

A. ALTER TABLE books ADD CONSTRAINT UNIQUE (pubid);

B. ALTER TABLE books ADD CONSTRAINT PRIMARY KEY (pubid);

C. ALTER TABLE books MODIFY (pubid CONSTRAINT NOT NULL);

D. ALTER TABLE books ADD FOREIGN KEY CONSTRAINT (pubid) REFERENCES publisher (pubid);

E. None of the above commands is valid



A. 0 - CORRECT ANSWERS How many NOT NULL constraints can be created at the table
level by using the CREATE TABLE command?

A. 0

B. 1

C. 12

D. 30

E. 255



C. the child table in a parent-child relationship - CORRECT ANSWERS The FOREIGN KEY
constraint should be added to which table?

A. the table representing the "one" side of a one-to-many relationship

B. the parent table in a parent-child relationship

Información del documento

Subido en
3 de diciembre de 2025
Número de páginas
7
Escrito en
2025/2026
Tipo
Examen
Contiene
Preguntas y respuestas
$8.49

¿Documento equivocado? Cámbialo gratis Dentro de los 14 días posteriores a la compra y antes de descargarlo, puedes elegir otro documento. Puedes gastar el importe de nuevo.
Escrito por estudiantes que aprobaron
Inmediatamente disponible después del pago
Leer en línea o como PDF

Seller avatar
Los indicadores de reputación están sujetos a la cantidad de artículos vendidos por una tarifa y las reseñas que ha recibido por esos documentos. Hay tres niveles: Bronce, Plata y Oro. Cuanto mayor reputación, más podrás confiar en la calidad del trabajo del vendedor.
VictorGrades
3.0
(2)
Vendido
23
Seguidores
0
Artículos
1359
Última venta
1 día hace


Por qué los estudiantes eligen Stuvia

Creado por compañeros estudiantes, verificado por reseñas

Calidad en la que puedes confiar: escrito por estudiantes que aprobaron y evaluado por otros que han usado estos resúmenes.

¿No estás satisfecho? Elige otro documento

¡No te preocupes! Puedes elegir directamente otro documento que se ajuste mejor a lo que buscas.

Paga como quieras, empieza a estudiar al instante

Sin suscripción, sin compromisos. Paga como estés acostumbrado con tarjeta de crédito y descarga tu documento PDF inmediatamente.

Student with book image

“Comprado, descargado y aprobado. Así de fácil puede ser.”

Alisha Student

Preguntas frecuentes