• Wrong document? Swap it for free
  • Written by students who passed
  • Immediately available after payment
  • Read online or as PDF
Sell
Where do you study
Your language
Document preview thumbnail
Preview 4 out of 85 pages
Exam (elaborations)

WGU D427 Data Management –Applications | SQL Programing - Intermediate Level | Explore New 107 Questions and Answers|2025 Update | 100% Correct.

Document preview thumbnail
Preview 4 out of 85 pages

WGU D427 Data Management –Applications | SQL Programing - Intermediate Level | Explore New 107 Questions and Answers|2025 Update | 100% Correct.

Content preview

3/22/25, 2:39 AM Data Management - Applications D427 - MYSQL - SQL Programing - Intermediate Level



WGU D427 Data Management –Applications | SQL Programing -
Intermediate Level | Explore New 107 Questions and Answers|2025
Update | 100% Correct.

Correct

Incorrect


D427

107 Correct terms




Questions and Answers




Year—integer,


Year—integer,

,3/22/25, 2:39 AM Data Management - Applications D427 - MYSQL - SQL Programing - Intermediate Level

Write a SQL statement to designate the Year column in the Book
table as a foreign key to the Year column in the TotalSales table.
Give this one a go later!



ALTER Table Movie
ADD Producer Varchar(50),
ALTER TABLE Movie
Drop Genre,
ADD PRIMARY KEY (ID);
CHANGE Year ReleaseYear
SMALLINT;




SELECT COUNT(*) ALTER TABLE Book
FROM Book ADD FOREIGN KEY (Year)
WHERE Year = 2019; REFERENCES YearSales (Year);


Don't know?




2 of 107

Definition



SELECT * FROM Book;



Give this one a go later!



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,
Write a SQL statement to delete the row with the ID value of 3 from the Movie
table.

,3/22/25, 2:39 AM Data Management - Applications D427 - MYSQL - SQL Programing - Intermediate Level


The database contains a table named Book.
Write a SQL query to return all data from the Book table without directly
referencing any column names.




The Book table has the following columns:
ID—integer, primary key, auto_increment,
Title—variable-length string,
Genre—variable-length string,
Year—integer ,
Write a SQL statement to delete the row with the ID value of 3 from the Book
table.




JOIN clause to select all the records from the Customers table plus all the
matches in the Orders table.


Don't know?




3 of 107

Term



CREATE TABLE Invoice (
invoice_id INT NOT NULL AUTO_INCREMENT,
date DATE NOT NULL,
customer_id INT NOT NULL,
PRIMARY KEY (invoice_id),
FOREIGN KEY (customer_id) REFERENCES Customer (customer_id)
ON DELETE RESTRICT
);


Looking at the Customer and Invoice tables and the CREATE TABLE
for the Invoice table with foreign key reference statement above,

, 3/22/25, 2:39 AM Data Management - Applications D427 - MYSQL - SQL Programing - Intermediate Level

what would happen to invoices in the Invoice table that are linked to
a customer if that customer is deleted.

Give this one a go later!



Those invoices would be deleted Those invoices would remain in the
also. database.




The customer id for those invoices The delete of the Customer
would be changed to null. would not be allowed.


Don't know?




4 of 107

Definition



ALTER TABLE Orders
ADD FOREIGN KEY (PersonID) REFERENCES Persons(PersonID);



Give this one a go later!



Create a unique constraint on the Create a Primary Key constraint on
"personid" column in the "persons" the "orderid" column in the "orders"
table table




Create a FOREIGN KEY
Create an index on the "personid"
constraint on the "PersonID"
column in the "orders" table
column in the "Orders" table

Document information

Uploaded on
March 22, 2025
Number of pages
85
Written in
2024/2025
Type
Exam (elaborations)
Contains
Questions & answers
$18.99

Wrong document? Swap it for free Within 14 days of purchase and before downloading, you can choose a different document. You can simply spend the amount again.
Written by students who passed
Immediately available after payment
Read online or as PDF

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.
Wiseman
3.9
(1670)
Sold
8444
Followers
3907
Items
31205
Last sold
4 hours ago



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

Working on your references?

Create accurate citations in APA, MLA and Harvard with our free citation generator.

Working on your references?

Frequently asked questions