Can I do a max(count(*)) in SQL?

前端 未结 11 1824
遥遥无期
遥遥无期 2020-11-29 01:02

Here\'s my code:

    select yr,count(*)  from movie
join casting on casting.movieid=movie.id
join actor on casting.actorid = actor.id
where actor.name = \'Jo         


        
11条回答
  •  日久生厌
    2020-11-29 01:51

    Just order by count(*) desc and you'll get the highest (if you combine it with limit 1)

提交回复
热议问题