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 4 fuera de 32 páginas
Examen

D 427 / D427 Objective Assessment (Latest Update 2025 / 2026) Data Management – Applications | Questions and Answers | Grade A | 100% Correct (Verified Answers).WGU

Document preview thumbnail
Vista previa 4 fuera de 32 páginas

1. A database has a view named MovieView. Write a SQL statement to delete the view named MovieView from the database.: DROP VIEW MovieView; 2. The Movie table has the following columns: ID—integer Title—variable-length string Genre—variable-length string RatingCode—variable-length string Year—integer Write a SQL statement to modify the Movie table to make the ID column the primary key.: ALTER TABLE Movie ADD PRIMARY KEY (ID); 3. The Movie table has the following columns: ID—integer, primary key Title—variable-length string Genre—variable-length string RatingCode—variable-length string Year—integer The YearStats table has the following columns: Year—integer TotalGross—bigint unsigned Releases—integer 4. Write a SQL statement to designate the Year column in the Movie table as a foreign key to the Year column in the YearStats table.: ALTER TABLE Movie ADD FOREIGN KEY (Year) REFERENCES YearStats(Year);

Vista previa del contenido

D427




D 427 / D427 Objective Assessment (Latest
Update ) Data Management –
Applications | Questions and Answers | Grade
A | 100% Correct (Verified Answers).WGU



1. A database has a view named MovieView.

Write a SQL statement to delete the view named MovieView from the

database.: DROP VIEW MovieView;

2. The Movie table has the following columns:

ID—integer

Title—variable-length string

Genre—variable-length string

RatingCode—variable-length string

Year—integer

Write a SQL statement to modify the Movie table to make the ID column

the primary key.: ALTER TABLE Movie

ADD PRIMARY KEY (ID);




, D427




3. The Movie table has the following columns:

ID—integer, primary key

Title—variable-length string

Genre—variable-length string

RatingCode—variable-length string

Year—integer

The YearStats table has the following columns:

Year—integer

TotalGross—bigint unsigned

Releases—integer

4. Write a SQL statement to designate the Year column in the Movie

table as a foreign key to the Year column in the YearStats table.:

ALTER TABLE Movie

ADD FOREIGN KEY (Year)

REFERENCES YearStats(Year);

5. The Movie table has the following columns:

ID—integer, primary key

Title—variable-length string




, D427




Genre—variable-length string

RatingCode—variable-length string

Year—integer

6. Write a SQL statement to create an index named idx_year on the Year

column of the Movie table.: CREATE INDEX idx_year ON

Movie(Year); 9. The Movie table has the following columns:

ID—integer, primary key, auto-increment

Title—variable-length string

Genre—variable-length string

RatingCode—variable-length string

Year—integer

The following data needs to be added to the Movie table:


Title Genre RatingCode YearPride

Prejudice Romance G 2005


7. Write a SQL statement to insert the indicated data into the Movie

table.: IN-

SERT INTO Movie (Title, Genre, RatingCode, Year)




, D427




VALUES ('Pride and Prejudice', 'Romance', 'G',

2005); 10. The Movie table has the following

columns:

ID—integer, primary key

Title—variable-length string

Genre—variable-length string

RatingCode—variable-length string

Year—integer

8. Write a SQL statement to delete the row with the ID value of 3 from

the Movie table.: DELETE FROM Movie

WHERE ID = 3;

9. The Movie table has the following columns:

ID—integer, primary key

Title—variable-length string

Genre—variable-length string

RatingCode—variable-length string

Year—integer

Información del documento

Subido en
29 de agosto de 2025
Número de páginas
32
Escrito en
2025/2026
Tipo
Examen
Contiene
Preguntas y respuestas
$14.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.
ExamitorMagnus
3.5
(22)
Vendido
119
Seguidores
7
Artículos
1753
Última venta
5 días 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