SQL Interview Questions For Data Science Question 3 1690137282
SQL Interview Questions For Data Science Question 3 1690137282
Swipe
Swipe
Tables:
Consider the following dataset
representing
1. Regions
Rudraksh Atreya
2. Products
3. Sales
in a retail company:
1 T-shirt Clothing
1 East
2 Watch Accessories
2 West
3 Sneakers Footwear
3 North
4 Backpack Accessories
4 South
5 Jeans Clothing
Swipe
Tables:
Rudraksh Atreya
sale_id product_id region_id date quantity price_per_unit
1 1 1 2023-06-15 10 15.00
2 2 1 2023-06-15 5 25.00
3 1 2 2023-06-16 8 12.00
4 2 2 2023-06-16 3 30.00
5 3 2 2023-06-17 4 20.00
6 4 3 2023-06-17 6 18.00
7 5 3 2023-06-18 7 22.00
8 3 4 2023-06-18 2 28.00
Swipe
Your Task is to:
Rudraksh Atreya
Swipe
Expected
Output:
Rudraksh Atreya
Swipe
Solution: Rudraksh Atreya
Swipe
Step by Step Explanation:
Rudraksh Atreya
1.
2.
3.
4.
5.
6.
7.
8.
Swipe
llo
Fo re!w Rudraksh Atreya
for m o
o