Answered step by step
Verified Expert Solution
Link Copied!

Question

00
1 Approved Answer

Question 2) using sql 1.Get sales during Christmas period (21 dec 2020 - 27 dec 2020) by region. 2.Get count of transactions by region where

Question 2)

using sql

image text in transcribed

1.Get sales during Christmas period (21 dec 2020 - 27 dec 2020) by region.

2.Get count of transactions by region where customers had greater than 10000 $ sales and less than 10000 $ sales. (hint: create 2 columns for getting count of transaction ids - one where customers had greater than 10000 $ sales and another where customers had less than 10000 $ sales)

F G H date 1 WN A B D E F customerid product_quantity price_per_item region transaction_id 10/9/2021 CC1 3 33 E 1 10/9/2021 CC1 4 22 A 2 12/26/2020 CC1 2 111 F 3 12/27/2020 CC2 1 22 G 4 12/28/2020 CC2 4 11000 G 5 12/29/2020 CC3 2 33 S 6 12/30/2020 CC3 1 22 S 7 10/9/2021 CC4 3 11000 E 8 10/10/2021 CC4 4 33 R 9 N Aw 1 2 3 4 5 6 7 8 9 10 11 12 13 5 ON

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access with AI-Powered 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

Students also viewed these Databases questions