100% satisfaction guarantee Immediately available after payment Both online and in PDF No strings attached 4.2 TrustPilot
logo-home
Exam (elaborations)

WGU - D427 Data Management - Applications ZyBooks Labs 7 and 8 UPDATED ACTUAL Exam Questions and CORRECT Answers

Rating
-
Sold
-
Pages
18
Grade
A+
Uploaded on
23-04-2025
Written in
2024/2025

WGU - D427 Data Management - Applications ZyBooks Labs 7 and 8 UPDATED ACTUAL Exam Questions and CORRECT 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:

Show more Read less
Institution
D427
Course
D427










Whoops! We can’t load your doc right now. Try again or contact support.

Written for

Institution
D427
Course
D427

Document information

Uploaded on
April 23, 2025
Number of pages
18
Written in
2024/2025
Type
Exam (elaborations)
Contains
Questions & answers

Subjects

Content preview

WGU - D427 Data Management -
Applications ZyBooks Labs 7 and 8
UPDATED ACTUAL Exam Questions and
CORRECT 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. -
CORRECT ANSWER - 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 - CORRECT ANSWER - 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 - CORRECT ANSWER - UPDATE Horse
SET Height = 15.6
WHERE ID = 2;


UPDATE Horse
SET RegisteredName = 'Lady Luck',
BirthDate = '2015-05-01'
WHERE ID = 4;


UPDATE Horse
SET Breed = NULL
WHERE BirthDate >= '2016-12-22';


7.4 LAB - Delete rows from Horse table


The Horse table has the following columns:
ID - integer, auto increment, primary key
RegisteredName - variable-length string
Breed - variable-length string
Height - decimal number
BirthDate - date

Get to know the seller

Seller avatar
Reputation scores are based on the amount of documents a seller has sold for a fee and the reviews they have received for those documents. There are three levels: Bronze, Silver and Gold. The better the reputation, the more your can rely on the quality of the sellers work.
MGRADES Stanford University
View profile
Follow You need to be logged in order to follow users or courses
Sold
1041
Member since
1 year
Number of followers
100
Documents
68977
Last sold
7 hours ago
MGRADES (Stanford Top Brains)

Welcome to MGRADES Exams, practices and Study materials Just think of me as the plug you will refer to your friends Me and my team will always make sure you get the best value from the exams markets. I offer the best study and exam materials for a wide range of courses and units. Make your study sessions more efficient and effective. Dive in and discover all you need to excel in your academic journey!

3.8

166 reviews

5
72
4
30
3
42
2
8
1
14

Recently viewed by you

Why students choose Stuvia

Created by fellow students, verified by reviews

Quality you can trust: written by students who passed their tests and reviewed by others who've used these notes.

Didn't get what you expected? Choose another document

No worries! You can instantly pick a different document that better fits what you're looking for.

Pay as you like, start learning right away

No subscription, no commitments. Pay the way you're used to via credit card and download your PDF document instantly.

Student with book image

“Bought, downloaded, and aced it. It really can be that simple.”

Alisha Student

Frequently asked questions