This question shows research effort; it is useful and clear
1
This question does not show any research effort; it is unclear or not useful
Bookmark this question.
Show activity on this post.
如何对 3 列使用 group by 它显示它不是 group by 表达式的错误。这是查询。
select
brewer.name as brewer,beer.name as beer,count(ratings.score) as LowestRating
from ratings,beer,brewer
where ratings.beer=beer.id and beer.brewer=brewer.id
group by brewer,beer;
select
brewer.name as brewer,
beer.name as beer,
count(ratings.score) as LowestRating
from
ratings,
beer,
brewer
where
ratings.beer = beer.id
and beer.brewer = brewer.id
group by brewer.name, beer.name;