Download as docx, pdf, or txt
Download as docx, pdf, or txt
You are on page 1of 2

Data and SQL for Business – Day 3 – Homework – 10/26/2022

Task 1:

Create groups for the population which count the male and female
members in each age groups.

Groups:
young: not older than 20
middle: older than 20 and not older than 40
old: older than 40 not older than 60

Task 2:

Calculate the average sales price for the top 10 sale orders with the highest
revenue.
(Use a simple, unweighted average.)

Task 3:

Sale orders were delivered to customers via different delivery methods. The
details of each delivery method can be found in the delivery table.
Calculate the total amount spent on each delivery method in 2015.
Order the result by total cost, largest to smallest.

You might also like