Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Now write SQL queries to answer the following questions. Find the average unit retail amount for electronic items purchased by Advantage members at Store 20
Now write SQL queries to answer the following questions.
- Find the average unit retail amount for electronic items purchased by Advantage members at Store 20 in January, 2000. Hint: Advantage Members are indicated by member_type 'V'. Category 5 is Electronics. For dates use the format 20000131 for Jan 31, 2000
- Find the markup rate for items purchased in January, 2000 from any store in Wisconsin WI for the item vendor is Vendor of 11110.
- What is the total quantity of items sold in WI between Jan.1,2000 and Jan.7, 2000?
- How many different members visited stores in WI between Jan.1, 2000 and Jan.7, 2000?
- Count the number of different customers (members) who bought an item with a CLEAR color in Texas and spent more than $50.
- Count the number of different stores that sold HAMBURGER BUNS on Jan 5, 2000 to members with a member status code of A.
- The Sams Club management wants
-
a count of how many unique members who shopped in January, 2000?
b count of how many unique members who shopped in Store 3 on Jan 3, 2000?
- Management needs to know the dates (if any) on which anyone purchased 2 ALARM CHILI in WI.
- Management also needs a count of the number of times that any product whose description contains BODYWASH was purchased (visits) in any store in Florida FL in January, 2000
- Sams Club management needs the purchasing member number, item description, and price for the most expensive item(s) purchased in Wisconsin WI on January 3rd, 2000.
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started