Mysql
 sql >> Database >  >> RDS >> Mysql

MySQL Seleziona solo la percentuale di righe

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

Devi inserire un valore per X