• ¿Documento equivocado? Cámbialo gratis
  • Escrito por estudiantes que aprobaron
  • Inmediatamente disponible después del pago
  • Leer en línea o como PDF
Vender
¿Dónde estudias?
Tu idioma
Document preview thumbnail
Vista previa 2 fuera de 11 páginas
Examen

DATA C170 Practice Test 2 with Answer Key

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

DATA C170 Practice Test 2 with Answer Key DATA C170 Practice Test 2 with Answer Key DATA C170 Practice Test 2 with Answer Key DATA C170 Practice Test 2 with Answer Key DATA C170 Practice Test 2 with Answer Key DATA C170 Practice Test 2 with Answer Key

Vista previa del contenido

C170 Practice Test 2
Refer to this diagram for questions 1 though 3




1.

You are creating a database which will have the 2 tables shown above.

You need to ensure that if a category is removed from the Category table, all related product rows would
have their CategoryID set to a null value.

What should you use?

a. ON DELETE CASCADE
b. ON DELETE SET TO NULL
c. ON DELETE RESTRICT
d. ON UPDATE CASCADE

, 2.

Which rule would you use in your CREATE TABLE statement for your Category table if you would like to
have all products related to a specific category deleted if they are linked to a category that is deleted?

a. ON DELETE CASCADE
b. ON DELETE SET TO NULL
c. ON DELETE RESTRICT
d. ON UPDATE CASCADE

3.

Which rule would you use in your CREATE TABLE statement for your Category table if you needed to
prevent deletion of a category if there were associated products in the Product table?

a. ON DELETE CASCADE
b. ON DELETE SET TO NULL
c. ON DELETE RESTRICT
d. ON UPDATE CASCADE



4.




You are creating a relational database to store information about instructors and the courses that each
instructor teaches. Each course is taught by a single instructor.

You have created an Instructor table and a Course table as shown above. You need to create a
relationship between the Instructor table and the Course table. You need to keep duplicate data to a
minimum. What should you do?

a. Create a new column in the Instructor table.
b. Create new columns in the Instructors table for each course taught.
c. Create a new table that includes two columns.
d. Create a new column in the Course table.

Información del documento

Subido en
14 de agosto de 2023
Número de páginas
11
Escrito en
2023/2024
Tipo
Examen
Contiene
Preguntas y respuestas
$19.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.
Timeless2024
3.9
(684)
Vendido
3674
Seguidores
3137
Artículos
2121
Última venta
1 semana 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