I would like to know how to get the row highlighted in red because I tried with this query and it returns the username: 15 and more: 2, the problem I have is that I do not know why it is returned to me by username: 21
SELECT idusuario,count(califica) as mayorpleno FROM prediccion where califica='P' GROUP BY idusuario)
when making this query I get the following image:
then to get that row highlighted in red I made this query:
select idusuario,max(mayorpleno) from (SELECT idusuario,count(califica) as mayorpleno FROM prediccion where califica='P' GROUP BY idusuario) as cantpleno
and it returns my username: 15 fullest: 2 things that are not like that
where is the error ??