I have to select the candidate who has more publications than any of the other candidates.
select candidato.nome, Count(1) as nr_publicacoes
from candidato, cv,ficha_inscricao, publicacao_cv
where candidato.bi = ficha_inscricao.bi and
candidato.bi = cv.bi and cv.cod_cv = publicacao_cv.cod_cv
group by candidato.nome;
But when I max, Orale SQL Developer does not give results or error messages.
I do not want to use rownum
, my goal is to solve using max
.