create view top5food as
select f.FoodID,f.FoodName,SUM(o.Quantity) as "Total Food Sold"
from FOODANDBEVERAGEORDER o,FOODANDBEVERAGE f
where o.foodid=f.foodid
group by o.foodid
order by SUM(o.Quantity) desc;
anything wrong with this query? there is an error ORA-00979 NOT A GROUP BY EXPRESSION