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

Mysql Seleccione solo el porcentaje de filas

SELECT title, COUNT(art) AS art_count
FROM table1
GROUP BY art 
HAVING art_count >= (select count(*) * X / 100 from table1)

Debe insertar un valor para X