Wk5 - Coursera - Online Courses From Top Universities
Wk5 - Coursera - Online Courses From Top Universities
1/1
points
1.
Have you completed the week 5 Teradata practice exercises guide?
Yes
No
1/1
points
2.
How many distinct skus have the brand “Polo fas”, and are either size “XXL” or
“black” in color?
13,623
Correct
There are several possible queries that would arrive at the right answer,
one of which is:
FROM skuinfo
5,224
https://www.coursera.org/learn/analyticsmysql/exam/XPwvJ/week5gradedquizusingteradata 1/17
6/18/2017 Coursera | Online Courses From Top Universities. Join for Free | Coursera
27,271
Week 5 Graded Quiz using Teradata 14/15 points (93%)
Quiz, 15 questions
84
1/1
points
3.
There was one store in the database which had only 11 days in one of its
months (in other words, that store/month/year combination only contained 11
days of transaction data). In what city and state was this store located?
Tulsa, OK
Richmond, VA
Little Rock, AR
Atlanta, GA
Correct
There are several possible queries that would arrive at the right answer,
one of which is:
ON t.store=s.store
FROM trnsact
1/1
https://www.coursera.org/learn/analyticsmysql/exam/XPwvJ/week5gradedquizusingteradata 2/17
6/18/2017 Coursera | Online Courses From Top Universities. Join for Free | Coursera
Week 5 Graded Quiz using Teradata
points
2637537
3949538
Correct
There are several possible queries that would arrive at the right answer,
one of which is:
SELECT sku,
December-November AS sales_bump
FROM trnsact
WHERE stype='P'
GROUP BY sku
6966816
4737469
1/1
points
5.
What vendor has the greatest number of distinct skus in the transaction table
that do not exist in the skstinfo table? (Remember that vendors are listed as
distinct numbers in our data set).
5715232
Correct
https://www.coursera.org/learn/analyticsmysql/exam/XPwvJ/week5gradedquizusingteradata 3/17
6/18/2017 Coursera | Online Courses From Top Universities. Join for Free | Coursera
There are several possible queries that would arrive at the right answer,
Week 5 Graded Quiz
one of whichusing
is: Teradata 14/15 points (93%)
Quiz, 15 questions
FROM trnsact t
GROUP BY si.vendor
9514659
3313116
5511283
1/1
points
6.
What is the brand of the sku with the greatest standard deviation in sprice?
Only examine skus which have been part of over 100 transactions.
Hart Sch
Correct
There are several possible ways you could write the query to arrive at
the correct answer, including with a subquery, such as this:
https://www.coursera.org/learn/analyticsmysql/exam/XPwvJ/week5gradedquizusingteradata 4/17
6/18/2017 Coursera | Online Courses From Top Universities. Join for Free | Coursera
GROUP BY sku
Week 5 Graded Quiz using Teradata 14/15 points (93%)
Quiz, 15 questions HAVING num_transactions > 100
AS top10skus
JOIN skuinfo si
ON top10skus.sku = si.sku
ON t.sku = si.sku
WHERE stype='P'
Clinique
Vanity F
Polo Fas
1/1
points
7.
What is the city and state of the store which had the greatest increase in
average daily revenue (as de瘐ned in Teradata Week 5 Exercise Guide) from
November to December?
Metairie, LA
https://www.coursera.org/learn/analyticsmysql/exam/XPwvJ/week5gradedquizusingteradata 5/17
6/18/2017 Coursera | Online Courses From Top Universities. Join for Free | Coursera
Correct
Week 5 Graded Quiz using Teradata 14/15 points (93%)
Quiz, 15 questions There are several possible queries that would arrive at the right answer,
one of which is:
ON t.store=s.store
FROM trnsact
Little Rock, AK
McAllen, TX
Tucson, AZ
0/1
points
8.
https://www.coursera.org/learn/analyticsmysql/exam/XPwvJ/week5gradedquizusingteradata 6/17
6/18/2017 Coursera | Online Courses From Top Universities. Join for Free | Coursera
8.
Week 5 Graded Quiz
Compare usingdaily
the average Teradata
revenue (as de瘐ned in Teradata Week 5 Exercise 14/15 points (93%)
Quiz, 15 questions Guide) of the store with the highest msa_income and the store with the lowest
median msa_income (according to the msa_income 瘐eld). In what city and state
were these two stores, and which store had a higher average daily revenue?
The store with the highest median msa_income was in McAllen, TX. It
had a higher average daily revenue than the store with the lowest
median msa_income, which was in Spanish Fort, AL.
The store with the highest median msa_income was in Littleton, CO. It
had a higher average daily revenue than the store with the lowest
median msa_income, which was in Cincinnati, OH.
The store with the highest median msa_income was in Spanish Fort,
AL. It had a lower average daily revenue than the store with the
lowest median msa_income, which was in McAllen, TX.
The store with the highest median msa_income was in Cincinnati, OH.
It had a lower average daily revenue than the store with the lowest
median msa_income, which was in Littleton, CO.
1/1
points
9.
Divide the msa_income groups up so that msa_incomes between 1 and 20,000
are labeled 'low', msa_incomes between 20,001 and 30,000 are labeled 'med-
low', msa_incomes between 30,001 and 40,000 are labeled 'med-high', and
msa_incomes between 40,001 and 60,000 are labeled 'high'. Which of these
groups has the highest average daily revenue (as de瘐ned in Teradata Week 5
Exercise Guide) per store?
med-high
high
low
Correct
There are several possible queries that would arrive at the right answer,
one of which is:
https://www.coursera.org/learn/analyticsmysql/exam/XPwvJ/week5gradedquizusingteradata 7/17
6/18/2017 Coursera | Online Courses From Top Universities. Join for Free | Coursera
SELECT SUM(revenue_per_store.revenue)/SUM(numdays) AS
Week 5 Graded Quiz using Teradata
avg_group_revenue, 14/15 points (93%)
Quiz, 15 questions
END as income_group
ON m.store=t.store
FROM trnsact
GROUP BY income_group
ORDER BY avg_group_revenue;
med-low
https://www.coursera.org/learn/analyticsmysql/exam/XPwvJ/week5gradedquizusingteradata 8/17
6/18/2017 Coursera | Online Courses From Top Universities. Join for Free | Coursera
1/1
Week 5 Graded Quiz
points
Quiz, 15 questions
using Teradata 14/15 points (93%)
10.
Divide stores up so that stores with msa populations between 1 and 100,000
are labeled 'very small', stores with msa populations between 100,001 and
200,000 are labeled 'small', stores with msa populations between 200,001 and
500,000 are labeled 'med_small', stores with msa populations between 500,001
and 1,000,000 are labeled 'med_large', stores with msa populations between
1,000,001 and 5,000,000 are labeled “large”, and stores with msa_population
greater than 5,000,000 are labeled “very large”. What is the average daily
revenue (as de瘐ned in Teradata Week 5 Exercise Guide) for a store in a “very
large” population msa?
$24,341
$16,355
$6,298
$25,452
Correct
There are several possible queries that would arrive at the right answer,
one of which is:
END as pop_group
https://www.coursera.org/learn/analyticsmysql/exam/XPwvJ/week5gradedquizusingteradata 9/17
6/18/2017 Coursera | Online Courses From Top Universities. Join for Free | Coursera
ON m.store=t.store
GROUP BY pop_group
ORDER BY daily_avg;
1/1
points
11.
Which department in which store had the greatest percent increase in average
daily sales revenue from November to December, and what city and state was
that store located in? Only examine departments whose total sales were at least
$1,000 in both November and December.
Correct
There are several possible queries that would arrive at the right answer,
one of which is:
FROM trnsact
1/1
points
12.
Which department within a particular store had the greatest decrease in
average daily sales revenue from August to September, and in what city and
state was that store located?
Correct
There are several possible queries that would arrive at the right answer,
one of which is:
END as exclude_翻ag,
FROM trnsact
1/1
points
13.
Identify which department, in which city and state of what store, had the
greatest DECREASE in the number of items sold from August to September.
How many fewer items did that department sell in September compared to
August?
https://www.coursera.org/learn/analyticsmysql/exam/XPwvJ/week5gradedquizusingteradata 12/17
6/18/2017 Coursera | Online Courses From Top Universities. Join for Free | Coursera
Correct
There are several possible queries that could have given you the right
answer, one of which is:
END as exclude_翻ag,
ON si.dept=d.dept
FROM trnsact
https://www.coursera.org/learn/analyticsmysql/exam/XPwvJ/week5gradedquizusingteradata 13/17
6/18/2017 Coursera | Online Courses From Top Universities. Join for Free | Coursera
1/1
points
14.
For each store, determine the month with the minimum average daily revenue
(as de瘐ned in Teradata Week 5 Exercise Guide) . For each of the twelve months
of the year, count how many stores' minimum average daily revenue was in that
month. During which month(s) did over 100 stores have their minimum average
daily revenue?
August only
Correct
There are several possible queries that would arrive at the right answer,
one of which is:
FROM trnsact
FROM trnsact
https://www.coursera.org/learn/analyticsmysql/exam/XPwvJ/week5gradedquizusingteradata 14/17
6/18/2017 Coursera | Online Courses From Top Universities. Join for Free | Coursera
GROUP BY max_month_table.month_num
ORDER BY max_month_table.month_num;
1/1
points
15.
Write a query that determines the month in which each store had its maximum
number of sku units returned. During which month did the greatest number of
stores have their maximum number of sku units returned?
December
Correct
There are several possible queries that would arrive at the right answer,
one of which is:
https://www.coursera.org/learn/analyticsmysql/exam/XPwvJ/week5gradedquizusingteradata 15/17
6/18/2017 Coursera | Online Courses From Top Universities. Join for Free | Coursera
FROM trnsact
FROM trnsact
GROUP BY max_month_table.month_num
ORDER BY max_month_table.month_num
January
September
March
https://www.coursera.org/learn/analyticsmysql/exam/XPwvJ/week5gradedquizusingteradata 16/17
6/18/2017 Coursera | Online Courses From Top Universities. Join for Free | Coursera
https://www.coursera.org/learn/analyticsmysql/exam/XPwvJ/week5gradedquizusingteradata 17/17