2

国ごとに以下のクエリを使用します。渡された各国の平均を生成する関数を作成するにはどうすればよいですか?

-- pepsi drink database
select avg(monthly_sales)
from world_sales
where product name like '%juice%'
and country = 'germany' -- this can be japan, usa, china etc
4

2 に答える 2