100% de satisfacción garantizada Inmediatamente disponible después del pago Tanto en línea como en PDF No estas atado a nada 4.2 TrustPilot
logo-home
Examen

WGU - D427 Data Management - Applications ZyBooks Labs 7 and 8 Exam Questions And Answers

Puntuación
-
Vendido
-
Páginas
15
Grado
A+
Subido en
30-05-2024
Escrito en
2023/2024

WGU - D427 Data Management - Applications ZyBooks Labs 7 and 8 Exam Questions And Answers 7.1 LAB - Alter Movie table The Movie table has the following columns: ID - positive integer Title - variable-length string Genre - variable-length string RatingCode - variable-length string Year - integer Write ALTER statements to make the following modifications to the Movie table: 1. Add a Producer column with VARCHAR data type (max 50 chars). 2. Remove the Genre column. 3. Change the Year column's name to ReleaseYear, and change the data type to SMALLINT. ALTER TABLE Movie ADD Producer VARCHAR(50); ALTER TABLE Movie DROP Genre; ALTER TABLE Movie CHANGE Year ReleaseYear SMALLINT; 7.2 LAB - Insert rows into Horse table The Horse table has the following columns: ID - integer, auto increment, primary key RegisteredName - variable-length string Breed - variable-length string, must be one of the following: Egyptian Arab, Holsteiner, Quarter Horse, Paint, Saddlebred Height - decimal number, must be between 10.0 and 20.0 BirthDate - date, must be on or after Jan 1, 2015 Insert the following data into the Horse table: RegisteredName Breed Height INSERT INTO Horse (RegisteredName, Breed, Height, BirthDate) VALUES ('Babe', 'Quarter Horse', 15.3, ''); INSERT INTO Horse (RegisteredName, Breed, Height, BirthDate) VALUES ('Independence', 'Holsteiner', 16.0, ''); INSERT INTO Horse (RegisteredName, Breed, Height, BirthDate) VALUES ('Ellie', 'Saddlebred', 15.0, ''); INSERT INTO Horse (Breed, Height, BirthDate) VALUES ('Egyptian Arab', 14.9, ''); 7.3 LAB - Update rows in Horse table The Horse table has the following columns: ID - integer, auto increment, primary key RegisteredName - variable-length string Breed - variable-length string, must be one of the following: Egyptian Arab, Holsteiner, Quarter Horse, Paint, Saddlebred Height - decimal number, must be ≥ 10.0 and ≤ 20.0 BirthDate - date, must be ≥ Jan 1, 2015 Make the following updates: 1.- Change the height to 15.6 for horse with ID 2. 2.- Change the registered name to Lady UPDATE Horse SET Height = 15.6 WHERE ID = 2; U

Mostrar más Leer menos
Institución
Grado









Ups! No podemos cargar tu documento ahora. Inténtalo de nuevo o contacta con soporte.

Escuela, estudio y materia

Institución
Grado

Información del documento

Subido en
30 de mayo de 2024
Número de páginas
15
Escrito en
2023/2024
Tipo
Examen
Contiene
Preguntas y respuestas

Temas

Vista previa del contenido

WGU
-
D427
Data
Management
-
Applications
ZyBooks
Labs
7
and
8
7.1
LAB
-
Alter
Movie
table
The
Movie
table
has
the
following
columns:
ID
-
positive
integer
Title
-
variable-length
string
Genre
-
variable-length
string
RatingCode
-
variable-length
string
Year
-
integer
Write
ALTER
statements
to
make
the
following
modifications
to
the
Movie
table:
1.
Add
a
Producer
column
with
VARCHAR
data
type
(max
50
chars).
2.
Remove
the
Genre
column.
3.
Change
the
Year
column's
name
to
ReleaseYear,
and
change
the
data
type
to
SMALLINT.
ALTER
TABLE
Movie
ADD
Producer
VARCHAR(50);
ALTER
TABLE
Movie
DROP
Genre;
ALTER
TABLE
Movie
CHANGE
Year
ReleaseYear
SMALLINT;
7.2
LAB
-
Insert
rows
into
Horse
table
The
Horse
table
has
the
following
columns:
ID
-
integer,
auto
increment,
primary
key RegisteredName
-
variable-length
string
Breed
-
variable-length
string,
must
be
one
of
the
following:
Egyptian
Arab,
Holsteiner,
Quarter
Horse,
Paint,
Saddlebred
Height
-
decimal
number,
must
be
between
10.0
and
20.0
BirthDate
-
date,
must
be
on
or
after
Jan
1,
2015
Insert
the
following
data
into
the
Horse
table:
RegisteredName
Breed
Height
INSERT
INTO
Horse
(RegisteredName,
Breed,
Height,
BirthDate)
VALUES
('Babe',
'Quarter
Horse',
15.3,
'2015-02-10');
INSERT
INTO
Horse
(RegisteredName,
Breed,
Height,
BirthDate)
VALUES
('Independence',
'Holsteiner',
16.0,
'2017-03-13');
INSERT
INTO
Horse
(RegisteredName,
Breed,
Height,
BirthDate)
VALUES
('Ellie',
'Saddlebred',
15.0,
'2016-12-22');
INSERT
INTO
Horse
(Breed,
Height,
BirthDate)
VALUES
('Egyptian
Arab',
14.9,
'2019-10-12');
7.3
LAB
-
Update
rows
in
Horse
table
The
Horse
table
has
the
following
columns:
ID
-
integer,
auto
increment,
primary
key
RegisteredName
-
variable-length
string
Breed
-
variable-length
string,
must
be
one
of
the
following:
Egyptian
Arab,
Holsteiner,
Quarter
Horse,
Paint,
Saddlebred
Height
-
decimal
number,
must
be

10.0
and

20.0
BirthDate
-
date,
must
be

Jan
1,
2015
Make
the
following
updates:
1.-
Change
the
height
to
15.6
for
horse
with
ID
2.
2.-
Change
the
registered
name
to
Lady
UPDATE
Horse
SET
Height
=
15.6
WHERE
ID
=
2;
UPDATE
Horse
SET
RegisteredName
=
'Lady
Luck',
BirthDate
=
'2015-05-01'
WHERE
ID
=
4;
UPDATE
Horse
$13.99
Accede al documento completo:

100% de satisfacción garantizada
Inmediatamente disponible después del pago
Tanto en línea como en PDF
No estas atado a nada


Documento también disponible en un lote

Conoce al vendedor

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.
Studyclock Ashford University
Seguir Necesitas iniciar sesión para seguir a otros usuarios o asignaturas
Vendido
849
Miembro desde
3 año
Número de seguidores
492
Documentos
8831
Última venta
1 semana hace

4.2

222 reseñas

5
131
4
35
3
34
2
10
1
12

Recientemente visto por ti

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