I use mariadb and my question is, is there a way to return the value most repeated value inside a column using the MAX( ) function?
I did IT using LIMIT but I should do it with MAX.
SELECT categoría
FROM (SELECT categoría, COUNT(categoría) cuenta
FROM cliente GROUP BY categoría ORDER BY cuenta DESC LIMIT 1)AS consulta;