MySQL MID Solve by Pallab Kumar Nakti
MySQL MID Solve by Pallab Kumar Nakti
‘Information’:
Required:
ii) Write a query that counts the number of sales for each product.
iii) Write a query to calculate the total sales made by each employee. Sort the results in descending
iv) Write a query to find the average sale amount across all sales.
v) Write a query that lists all products that have total sales amounts greater than Tk. 100000.
Serial INT,
Name VARCHAR(50),
Product VARCHAR(50),
Sales INT
);
-- Required:
-- ii) Write a query that counts the number of sales for each
--product.
--sales.
-- iv) Write a query to find the average sale amount across all
--sales.
END