Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

4 . List CustomerID ( Cust _ ID column ) , City, State, and Zip code ( Zip _ Code column ) for customers from

4. List CustomerID (Cust_ID column), City, State, and Zip code (Zip_Code column) for customers from
Austin, Texas who have purchased both Chanel and Armani (Dept_Desc column) perfume/cologne
(Classification column). Sort result-set in ascending order of zip code. (Note Please refer to the
Department, SKU, Transact, and Customer tables. There are two types of transactions in the Tran_Type
column: purchase and return, please consider only the purchase transactions. For Dept_Desc condition, use
the LIKE operator with %Chanel% and %Armani%.)
5. Display with appropriate column headings the total purchase amount (Tran_Type column) and cumulative
purchase amount during each month in 2015(Tran_Date column) for Nike (Dept_Desc column) for stores
located in Texas. (Note Please refer to the Department, SKU, Transact and Store tables; use condition for
Dept_Desc LIKE Nike% or LEFT(LTRIM(Dept_Desc),4)=Nike; there are two types of transactions in
the Tran_Type column: purchase and return, please consider only the purchase transactions.
FORMAT(column name/expression,C) can be used for currency format.)
6. For each store in Texas, list the Store, State, City, Sales Year, Current Year Sales, Last Year Sales, and
Change in Total Yearly Sales between years 2014 and 2015. As the focus is on sales for years 2014 and
2015, for the Last Year Sales and Change in Total Yearly Sales columns include NA for sales year 2014.
Display result set in ascending order of store numbers. (Note Please refer to the Transact and Store tables;
there are two types of transactions in the Tran_Type column: purchase and return, please consider only the
purchase transactions. FORMAT(column name/expression,C) can be used for currency format.)
Note There are more than 100 rows in the result-set; rows 1 through 30 are shown below.
image text in transcribed

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Learn Mysql The Easy Way A Beginner Friendly Guide

Authors: Kiet Huynh

1st Edition

B0CNY7143T, 979-8869761545

More Books

Students also viewed these Databases questions