programming-examples/sql/RetrieveFromTables/Write a SQL query to display the average price of the items for each company, showing only the company code.sql

4 lines
201 B
MySQL
Raw Normal View History

2019-11-18 14:05:53 +01:00
/*Write a SQL query to display the average price of the items for each company, showing only the company code.*/
SELECT AVG(pro_price), pro_com
FROM item_mast
GROUP BY pro_com;