100% found this document useful (1 vote)
734 views

MySQL - Week 5 Quiz

The document contains the questions and answers from a MySQL quiz about analyzing retail transaction data. Key details include: - The store in Atlanta, GA only had transaction data for 11 days in one month. - Sku 3949538 had the greatest increase in total sales revenue from November to December. - Vendor 5715232 has the greatest number of skus not in the skstinfo table. - The department in Pine Bluff, AR saw the greatest percent increase in average daily sales from November to December. - The Clinique department in Louisville, KY saw the greatest decrease in average daily revenue from August to September.
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
100% found this document useful (1 vote)
734 views

MySQL - Week 5 Quiz

The document contains the questions and answers from a MySQL quiz about analyzing retail transaction data. Key details include: - The store in Atlanta, GA only had transaction data for 11 days in one month. - Sku 3949538 had the greatest increase in total sales revenue from November to December. - Vendor 5715232 has the greatest number of skus not in the skstinfo table. - The department in Pine Bluff, AR saw the greatest percent increase in average daily sales from November to December. - The Clinique department in Louisville, KY saw the greatest decrease in average daily revenue from August to September.
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 6

MySQL - week 5 quiz

!. Have you completed the week 5 Teradata practice exercises guide?


Answer Yes or No.

Yes (MINE)

No

Question 2
How many distinct skus have the brand “Polo fas”, and are either size “XXL” or
“black” in color?

84

5,224

27,271

13,623 (MINE)
 
Question 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?

Richmond, VA

Atlanta, GA (MINE)

Little Rock, AR

Tulsa, OK

Question 4
Which sku number had the greatest increase in total sales revenue from November
to December?
3949538 (MINE)

6966816

4737469

2637537
 
Question 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).

5511283

9514659

5715232 (MINE)

3313116
 
Question 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.

Polo Fas {possible}

Clinique

Hart Sch (MINE)

Vanity F

Question 7
What is the city and state of the store which had the greatest increase in average
daily revenue (as defined in Teradata Week 5 Exercise Guide) from November to
December?

Tucson, AZ
McAllen, TX

Little Rock, AK

Metairie, LA (MINE)

Question 8
Compare the average daily revenue (as defined in Teradata Week 5 Exercise
Guide) of the store with the highest msa_income and the store with the lowest
median msa_income (according to the msa_income field). 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 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 Cincinnati, OH. It had a
lower average daily revenue than the store with the lowest median msa_income,
which was in Littleton, CO.

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. (MINE)

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.

Question 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 defined in Teradata Week 5
Exercise Guide) per store?

low {possible}

high

med-low
med-high (MINE)

Question 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 defined
in Teradata Week 5 Exercise Guide) for a store in a “very large” population msa?

$24,341

$16,355

$6,298

$25,452 (MINE)
 
Question 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.

Louisvl department, Salina, KS

Clinique department, Odessa, TX

Jacques department, Jackson, MS

Gottex department, Pine Bluff, AR (MINE)

Question 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?
Clinique department, Cincinnati, OH

Clinique department, Louisville, KY (MINE)

Polomen department, Greenville, SC

Polomen department, Knoxville, TN

Question 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?

The R Lauren department in Toledo, OH sold 12,009 fewer items

The Clinique department in Greenville, SC sold 18,553 fewer items

The Clinique department in Louisville, KY sold 13,491 fewer items (MINE)

The R Lauren department in Charlotte, NC sold 5,856 fewer items


 
Question 14
For each store, determine the month with the minimum average daily revenue (as
defined 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?

January and September

January and August

August and September

August only (MINE)

Question 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?
March

September

December (MINE)

January

You might also like