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

WGU D191 VDM Task 1 – Automating Data Integration

Rating
-
Sold
-
Pages
17
Grade
A+
Uploaded on
28-01-2026
Written in
2025/2026

WGU D191 VDM Task 1 – Automating Data Integration

Institution
WGU D191 VDM
Course
WGU D191 VDM

Content preview

Advanced Data Management (D191) – Automating
Data Integration – Task 1

,SECTION A
In this business report, I will identify the top three most watched movies along with the revenue
generated by each of those movies. This could be useful to see the most popular movies, how
much revenue each one creates, and if you might want to increase the price based on supply
and demand. This could also tell you if it might be wise to increase your inventory of those
specific movies.

1. Describe the data used for the report.
A. The film id was counted based on the rental id to see how many times each movie
was rented. Then it was grouped by the film id and ordered by count descending.
Then the top three was chosen with the limit three. Then the sum of the payment
amount was found for each.
2. Identify two or more specific tables from the given dataset that will provide the data
necessary for the detailed and the summary sections of the report.
A. The tables that were used to generate this report was: rental, inventory, film and
payment.
3. Identify the specific fields that will be included in the detailed and the summary sections of
the report.
A. The data needed for this report was rental id, inventory id, film id, film title more for
visual, and payment amount. The film id was counted based on the rental id to see
how many times each movie was rented. Then it was grouped by the film id and
ordered by count descending. Then the top three was chosen with the limit three.
Then the sum of the payment amount was found for each.
4. Identify one field in the detailed section that will require a custom transformation and
explain why it should be transformed. For example, you might translate a field with a
value of ‘N’ to ‘No’ and ‘Y’ to ‘Yes’.
A. The transformed data was the payment amount of the summary table. It was
aggregated to find the total amount of revenue generated for each of the top three
movies. But did write a ‘SELECT’ statement that would pull the data and change the
‘amount’ column from a numeric to money using the CASE function for ease of
reading; to distinguish from all the generic numbers within the table.
B. In the detailed section, it is raw data and no reason to transform any data as of yet
in the process. The transformation would take place in the summary section.
5. Explain the different business uses of the detailed and the summary sections of the report.
A. This could be useful to see the most popular movies, how much revenue each one
creates, and if you might want to increase the price based on supply and demand.
This could also tell you if it might be wise to increase your inventory of those
specific movies. Help monitor consumer trends to assist in delivering similar movies
which will improve the customer experience. This could especially be useful to
increase traffic/business.
6. Explain how frequently your report should be refreshed to remain relevant to
stakeholders.
A. This report could possibly be ran once a month to give a good idea of what movies
are popular at that moment in time and the revenue generated. But would expect to
be based on the volume of the store.

SECTION B
Write a SQL code that creates the tables to hold your report sections.

--Create detailed Table

DROP TABLE IF EXISTS detailed;

, CREATE TABLE detailed (
rental_id int,
inventory_id int,
film_id int,
title varchar(90),
amount numeric (7,2)
);

--Verifying detailed table

SELECT * FROM detailed;

--Create the summary Table
DROP TABLE IF EXISTS summary;
CREATE TABLE summary(
rental_cnt int,
film_id int,
title VARCHAR(90),
rental_rev numeric(7,2)
);

SELECT * FROM summary;


SECTION C
Write a SQL query that will extract the raw data needed for the Detailed section of your report
from the source database and verify the data’s accuracy.


--Extract raw data and populate detailed data
INSERT INTO detailed(
rental_id,
inventory_id,
film_id,
title,
amount
)
SELECT
r.rental_id,
i.inventory_id,
f.film_id,
f.title,
CAST(p.amount AS money)
FROM payment p
INNER JOIN rental r ON r.rental_id = p.rental_id
INNER JOIN inventory i ON i.inventory_id = r.inventory_id
INNER JOIN film f ON f.film_id = i.film_id;


SECTION D
Write code for function(s) that perform the transformation(s) you identified in part A4.

--CREATING FUNCTION

Written for

Institution
WGU D191 VDM
Course
WGU D191 VDM

Document information

Uploaded on
January 28, 2026
Number of pages
17
Written in
2025/2026
Type
Exam (elaborations)
Contains
Questions & answers

Subjects

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.
YANCHY Herzing University
View profile
Follow You need to be logged in order to follow users or courses
Sold
1759
Member since
3 year
Number of followers
1158
Documents
23274
Last sold
12 hours ago
Ace Your Exams with Elite Study Resources | ExamEliteHub on Stuvia

I offer genuine and dependable exam papers that are directly obtained from well-known, reputable institutions as a highly regarded professional who specializes in sourcing study materials. These papers are invaluable resources made to help people who want to become nurses and people who work in other fields prepare for exams. Because of my extensive experience and in-depth knowledge of the subject, I take great care to ensure that each exam paper meets the highest quality, accuracy, and relevance standards, making them an essential component of any successful study plan.

Read more Read less
4.1

446 reviews

5
252
4
57
3
84
2
18
1
35

Trending documents

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