sql >> Base de Datos >  >> RDS >> Mysql

seleccione max () de contar ()

Eso solo significa que MySQL insiste en que le des el SELECT interno un nombre, como:

SELECT MAX(counted) FROM
(
    SELECT COUNT(*) AS counted
    FROM table_actions
    WHERE status = "good"
    GROUP BY user
) AS counts;