"D:\Test_Files\Outbound\Client\final"
答案 0 :(得分:2)
使用order by
和limit
:
select avg(R1.stars) as avgstrs, m.title
from Movie m join
Rating R1
on R1.mID = m.mID
group by R1.mID
order by avgstrs desc
limit 1;
如果这有帮助,请承诺您将学习正确的,明确的join
语法,并且不再在from
子句中使用逗号。