You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
6 lines
305 B
MySQL
6 lines
305 B
MySQL
5 years ago
|
/*Write a SQL query to display the average price of items of each company, showing the name of the company.*/
|
||
|
SELECT AVG(pro_price), company_mast.com_name
|
||
|
FROM item_mast INNER
|
||
|
JOIN company_mast
|
||
|
ON item_mast.pro_com= company_mast.com_id
|
||
|
GROUP BY company_mast.com_name;
|