SQL Taskbook Level 2.9

Given a table:

order_details
id name product_count discount
1 Aaron 8 10
2 Max 4 20
3 Catherine 6 30
4 Catherine 3 50
5 Aaron 2 0

Solve the following tasks for it:

Задание 1

Find orders by considering only orders with product quantities greater than the average order quantity.

Задание 2

Find products with the highest discount in orders.

Задание 3

Display orders where the number of products is greater than 5 and identify the customers who made such orders.