See below for the SQL command of each category
How to write the SQL commands?
To do this, we make use of the following clauses:
Using the above highlight, we have:
Average price of each vehicle having quantity more than 20.
The table name is given as: Vehicles
To display the average, we use the following query:
SELECT
Type, avg(Price)
FROM Vehicle
GROUP BY Type
HAVING QTY >20;
Count type of vehicle by each company
To count each type of vehicle, we use the following query:
SELECT
company, COUNT(DISINCT Type)
FROM VEHICLE
GROUP BY Company;
Display the total price of all
The total price is calculated using:
Total = Price * Quantity
So, we have the following query:
SELECT
Type, SUM(Price* Qty)
FROM VEHICLE
GROUP BY Type;
Read more about SQL at:
https://brainly.com/question/25694408
#SPJ2