SQL Taskbook Level 1.6
Given a table:
| id | user_id | product_id | amount | date |
|---|---|---|---|---|
| 1 | 2 | 2 | 150.50 | 2020-03-17 |
| 2 | 3 | 2 | 200.60 | 2017-08-31 |
| 3 | 4 | 4 | 700.10 | 2011-05-03 |
| 4 | 5 | 3 | 300.40 | 2005-12-31 |
| 5 | 5 | 3 | 650.70 | 2000-12-02 |
Solve the following tasks for it:
Задание 1
Find the minimum value of the amount column from this table.
Задание 2
Find the maximum value of the amount column from this table.
Задание 3
Find the average of the amount column values from this table.
Задание 4
Find the average of the amount column values from this table and round that value.
Задание 5
Find the sum of the amount column from this table and round this value to one decimal place.
Задание 6
Find the average value of the amount column from this table and round this value up.
Задание 7
Find the average value of the amount column from this table and round that value down.
Задание 8
Find the sum of the amount column from this table and make it so that there are 4 digits after the decimal point.